Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Overview

Adds a new milestone to list and starts counting.

Milestone myMilestones.AddFrom(name: string, startAt: DateTimeOffset, goal: ( string | DateTimeOffset ), assignedTo: ( string | Identity ))

Arguments

string name
Name of milestone
Start date time of milestone.
( string | DateTimeOffset ) goal
Goal of milestone. Can be specified as string value in duration format or date time. Optional.
( string | Identity ) assignedTo
Identity to assign milestone. If not specified automatically determined.

Returns

Returns the instance of Milestone

Remarks

Goal parameter can be specified in ISO 8601 duration format like "P2DT3H" or directly specified date like "new Date()". If no goal specified milestone is created without a goal and simply tracks the state of milestone.

Example

$Case.Milestones.AddFrom('SLA 1', $Calendar.Add($Calendar.Today, -4), 'PT3H');
  • No labels