Skip to content

Cancel

Cancels (aborts) a milestone.

1
myMilestones.Cancel(name: string):Milestone

Parameters

string name
    The name of the milestone. Required.

Returns

The Milestone instance if found; otherwise, null.

Remarks

Once a milestone has been cancelled, it cannot be started again. If needed, use Milestones.Add to create a new milestone.

If multiple milestones share the same name, only the milestone that is currently in progress will be cancelled and returned.

Examples

Cancel a milestone that no longer applies

1
2
3
if ($Case.IsClosed) {
    $Case.Milestones.Cancel('Resolution');
}

See Also