AddFrom¶
Adds a new milestone to the list and starts it immediately, using a specified start date and time.
1 |
|
Parameters¶
string name
The name of the milestone.
DateTimeOffset startAt
The date and time when the milestone should start.
( string | DateTimeOffset ) goal
The goal for the milestone. This can be a duration string or a specific date and time. Optional.
( string | Identity ) assignedTo
The identity to assign the milestone to. If not specified, the system automatically determines the appropriate identity.
Returns¶
The newly created Milestone instance.
Remarks¶
The goal
parameter can be specified in ISO 8601 duration format, such as "P2DT3H", or as a specific date and time object (new Date()
). If no goal is specified, the milestone is created without a goal and simply tracks its state.
Example¶
1 |
|