Create new task
Defaults values
-
status: 1
-
progress: 0
-
startDate: first working hour of current day
-
duration: 1 working day
-
priority: 3
-
color: 1
-
type: "task"
-
estimation: 0
Dates
-
If you don't pass a
startDate,endDateandduration-startDatewill be set as default,durationwill be set as default,endDatewill be calculated based onduration; -
If you only pass a
startDate(withoutendDateandduration) -durationwill be set as default,endDatewill be calculated based onduration; -
If you only pass a
duration(withoutstartDateandendDate) -startDatewill be set as default,endDatewill be calculated based onduration; -
If you pass a
startDateandendDate(withoutduration) -durationwill be automatically calculated; -
If you pass a
startDateandduration(withoutendDate) -endDatewill be automatically calculated; -
If you pass
endDateandduration(withoutstartDate) -startDatewill be set as default,durationandendDatewill be calculated; -
If you pass
startDate,endDateandduration-endDatewill be ignored and automatically re-calculated based onduration;