working on drag an drop of tasks. this is tricky.

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-07-31 00:52:19 +02:00
parent 99fa2ab1ce
commit bad323b7cc
4 changed files with 45 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ import org.json.JSONObject;
public class Task implements Mappable {
public static final System.Logger LOG = System.getLogger(Task.class.getSimpleName());
private final long id, projectId;
private final Long parentTaskId;
private Long parentTaskId;
private String description, name;
private Status status;
private Double estimatedTime;
@@ -158,6 +158,7 @@ public class Task implements Mappable {
case MEMBERS: continue;
case NAME: name = json.getString(key); break;
case NO_INDEX: noIndex = json.getBoolean(NO_INDEX); break;
case PARENT_TASK_ID: parentTaskId = json.getLong(PARENT_TASK_ID); break;
case SHOW_CLOSED: showClosed = json.getBoolean(SHOW_CLOSED); break;
case START_DATE: start = json.isNull(START_DATE) || json.getString(START_DATE).isBlank() ? null : LocalDate.parse(json.getString(START_DATE)); break;
case STATUS: status = json.get(key) instanceof Number number ? Status.of(number.intValue()) : Status.valueOf(json.getString(key)); break;