Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

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

Arguments

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

Returns

...

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

Code Block
languagejs
$Case.Milestones.AddFrom('SLA 1', $Calendar.Add($Calendar.Today, -4), 'PT3H');