implemented adding sub tasks

This commit is contained in:
2025-07-25 15:23:38 +02:00
parent adf7166bce
commit 8c7921b1c4
5 changed files with 40 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ public record Task(long id, long projectId, Long parentTaskId, String name, Stri
var showClosed = json.has(SHOW_CLOSED) && json.get(SHOW_CLOSED) instanceof Boolean sc ? sc : false;
var noIndex = json.has(NO_INDEX) && json.get(NO_INDEX) instanceof Boolean ni ? ni : false;
if (!(json.has(MEMBERS) && json.get(MEMBERS) instanceof JSONObject members)) throw missingFieldException(MEMBERS);
if (!(json.has(MEMBERS) && json.get(MEMBERS) instanceof JSONObject)) throw missingFieldException(MEMBERS);
return new Task(0,prjId.longValue(),parentTaskId,name,description,status,estimatedTime,startDate,dueDate,showClosed,noIndex,new HashMap<>());
}