-
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_dateanddue_dateare both set, then ignoreest_in_mins(Duration) (est_in_minscan often be wrong since it's easy to calculate scheduling incorrectly). -
If both
start_dateanddue_dateare provided, setstart_datebeforedue_date. -
Set
milestonebefore other schedule fields (becausestart_date,due_date, and duration get lost ifmilestoneis not set to false first) -
If
milestoneis being set toTrue, ignoreest_in_mins -
If
milestoneis set toTrueandstart_dateanddue_dateare also being set to conflicting values, raise an Exception. -
If
due_dateandest_in_minsare set together (withoutstart_date), setdue_dateafterest_in_mins(otherwise settingest_in_minswill changedue_dateafter it is set).