Skip to content

Milestone

Represents a time-based goal of a case, such as a first response or resolution time.

Remarks

Create a milestone with Milestones.Add on Case.Milestones. A milestone starts when it is created and runs until it is stopped or cancelled. Milestone.Pause and Milestone.Resume exclude periods, such as waiting for the customer, from the elapsed time. Milestone.Stop marks the milestone as completed, and Milestone.Cancel cancels it when the goal no longer applies.

Milestone.DueAt is the time by which the goal must be reached, and Milestone.Elapsed is the elapsed time in hours.

Examples

Measure the first response time of a case

1
2
3
var firstResponse = $Case.Milestones.Add('First Response', 'PT4H');

console.info('First response is due at ' + firstResponse.DueAt);

Capabilities

Properties

Status

Lifecycle Control

  • Milestone.Cancel: Cancels the current milestone.
  • Milestone.Pause: Pauses the current milestone. The time while the milestone is paused does not count toward its goal.
  • Milestone.Resume: Resumes the current milestone that was previously paused.
  • Milestone.Stop: Stops the current milestone, marking it as completed.