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 | |
Capabilities¶
Properties¶
- Milestone.DueAt: Gets the target completion date and time for the milestone.
- Milestone.Duration: Gets the target duration, in hours, for the milestone, if specified.
- Milestone.StoppedAt: Gets the date and time when the milestone was stopped.
Status¶
- Milestone.Elapsed: Gets the total elapsed time, in hours, since the milestone started.
- Milestone.Name: Gets the name of the milestone.
- Milestone.Stage: Gets the current stage of the milestone.
- Milestone.StartedAt: Gets the date and time when the milestone started.
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.