implemented task creation right from the canban
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -129,6 +129,10 @@ public class Task implements Mappable {
|
||||
};
|
||||
|
||||
var status = Status.OPEN;
|
||||
if (json.has(STATUS) && json.get(STATUS) instanceof JSONObject state){
|
||||
if (state.get(CODE) instanceof Number code) status = Status.of(code.intValue());
|
||||
if (state.get(CODE) instanceof String code) status = Status.valueOf(code);
|
||||
}
|
||||
Double estimatedTime = null;
|
||||
if (json.has(ESTIMATED_TIME)) {
|
||||
if (json.get(ESTIMATED_TIME) instanceof Number est) estimatedTime = est.doubleValue();
|
||||
|
||||
Reference in New Issue
Block a user