Add¶
Adds a new milestone to the list and starts it immediately.
myMilestones.Add(name: string, goal?: ( string | DateTimeOffset ), assignedTo?: ( string | Identity )):Milestone (DateTimeOffset, Identity, Milestone)
Parameters¶
string name
The name of the milestone.
( string | DateTimeOffset ) goal optional
The goal for the milestone. This can be a duration string or a specific date and time. Optional.
( string | Identity ) assignedTo optional
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 an ISO 8601 duration such as "P2DT3H", or a DateTimeOffset. Other values do not create a duration or due date. If no goal is specified, the milestone is created without a goal and simply tracks its state.
Example¶
1 | |