implemented task creation right from the canban

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-07-27 14:55:10 +02:00
parent 65102df091
commit 3b163a0d77
6 changed files with 64 additions and 20 deletions

View File

@@ -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();