Goal procedures are linked to stages using the Service Desk > Desk Definition > Processing > Stage > New / Edit Procedures tab.
A stage goal procedure starts the goal clock as soon as the ticket enters the stage. The triggering of a stage goal procedure is canceled as soon as the ticket transitions out of that stage.
The goal time for a stage can be set using the setGoalTime() command. This overrides the default goal time set in the stage record.
Color coding by Due Date in Role Preferences is determined by a goal procedure linked to a stage.