-
Notifications
You must be signed in to change notification settings - Fork 204
Updating Task Dates: How Shotgun Thinks
When updating Task dates in an API update() request, there is no specified order to the values that are passed in. In order to clarify how updates are handled by Shotgun when there are multiple fields provided, we're showing you how Shotgun thinks in the bullet points below:
-
Set schedule fields (
milestone
,est_in_mins
,start_date
,due_date
) after all other fields, because the Project and Task Assignees affect schedule calculations. -
If
start_date
anddue_date
are both set, then ignoreest_in_mins
(Duration) (est_in_mins
can often be wrong since it's easy to calculate scheduling incorrectly). -
If both
start_date
anddue_date
are provided, setstart_date
beforedue_date
. -
Set
milestone
before other schedule fields (becausestart_date
,due_date
, and duration get lost ifmilestone
is not set to false first) -
If
milestone
is being set toTrue
, ignoreest_in_mins
-
If
milestone
is set toTrue
andstart_date
anddue_date
are also being set to conflicting values, raise an Exception. -
If
due_date
andest_in_mins
are set together (withoutstart_date
), setdue_date
afterest_in_mins
(otherwise settingest_in_mins
will changedue_date
after it is set).