Skip to content

Add

Adds a new milestone to the list and starts it immediately.

1
myMilestones.Add(name: string, goal: any, assignedTo: ( string | Identity )):Milestone

Parameters

string name
    The name of the milestone.

any 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
$Case.Milestones.Add('SLA 1', 'PT3H');

See Also