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
,endDate
andduration
-startDate
will be set as default,duration
will be set as default,endDate
will be calculated based onduration
; -
If you only pass a
startDate
(withoutendDate
andduration
) -duration
will be set as default,endDate
will be calculated based onduration
; -
If you only pass a
duration
(withoutstartDate
andendDate
) -startDate
will be set as default,endDate
will be calculated based onduration
; -
If you pass a
startDate
andendDate
(withoutduration
) -duration
will be automatically calculated; -
If you pass a
startDate
andduration
(withoutendDate
) -endDate
will be automatically calculated; -
If you pass
endDate
andduration
(withoutstartDate
) -startDate
will be set as default,duration
andendDate
will be calculated; -
If you pass
startDate
,endDate
andduration
-endDate
will be ignored and automatically re-calculated based onduration
;