Docs
On this page
concept3 min readApplication: IT Service Management

How SLA evaluation works

When SLA clocks start, pause, stop and are cancelled, the order Servicely tests the conditions in, and how the schedule and time zone are chosen.

Every time a record with SLA definitions is saved, Servicely tests the definitions’ conditions and starts, pauses, resumes, stops or cancels its SLA clocks. This page explains that sequence for administrators who write SLA conditions, so the clocks behave as the agreement says.

When evaluation runs

The “Work - SLA engine” trigger runs after every create and update on tables extended from Work. The “Interaction - SLA engine” trigger does the same for interactions. Other tables need their own trigger to run SLAs. Evaluation uses the active SLA definitions for the record’s table.

A condition that is empty never matches. If a definition has both a condition and a condition script for the same step, both must match.

The order of the steps

For each save, Servicely works through the definitions in this order:

  1. Cancel. A running or paused SLA whose definition’s cancel condition matches is cancelled. Its due time and durations are cleared and its progress level becomes Cancelled.
  2. Resume. A paused SLA whose pause condition no longer matches starts running again. The paused time is added to its pause durations and its threshold times are recalculated.
  3. Stop. A running or paused SLA whose stop condition matches is completed. Servicely calculates its business and elapsed durations, its achievement percentage and whether it was met.
  4. Start. A definition with no active SLA on the record, whose start condition matches, creates a new SLA in the Running state.
  5. Pause. A running SLA whose pause condition matches is paused.

Then the due times of the primary SLA are copied to the record, and its SLA status field is updated where the table has one.

Some consequences of this order:

  • An SLA that has stopped never restarts. If the start condition matches again later, a new SLA is created.
  • An SLA is cancelled only by its cancel condition. A record that no longer meets the start condition keeps its running SLA.
  • With Prevent immediate stop condition on, which is the default, an SLA started in this save is not stopped in the same save.
  • A record that meets the start and pause conditions at once gets an SLA that starts and is then paused straight away.

Met or breached

At stop, the achievement percentage is the business duration divided by the target duration. Boundary behaviour on the definition decides the exact 100 percent case:

Boundary behaviour Exactly 100 percent is
Trailing (start of next window), the default Met
Leading (end of current window) Breached

While the SLA runs, Servicely schedules a job for the time the next threshold falls due, so the progress level moves to Warning or Breached without anyone saving the record.

Carrying pause time over a cancellation

When Copy pause duration on cancellation is on, a new SLA started in the same save as another was cancelled inherits that SLA’s start time and pause durations. This keeps the clock fair when a change, such as a new priority, swaps one definition for another. The cancelled SLA must have the same Cancellation group, or, when the group is empty, the same Type.

Schedule and time zone

An SLA counts business time in a schedule and reads it in a time zone. Servicely takes the first one it finds in this order:

Order Schedule Time zone
1 Schedule on the SLA definition Time zone on the SLA definition
2 The default schedule of the record’s company, or of the company’s default organisation The default time zone of the record’s company, or of its default organisation
3 The requester’s schedule, or that of their company or organisation The requester’s time zone, or that of their company or organisation
4 The schedule of the user who saved the record The time zone of the user who saved the record
5 “Default fall-though schedule”: Monday to Friday, 8:00 to 18:00 The instance’s default time zone

Steps 2 and 3 apply to tables extended from Work. A company with no time zone falls back to the instance’s default time zone. So when the record has a company, the requester’s time zone is never used.

The order Servicely checks to choose an SLA’s time zone: the SLA definition, the company, the requester, then the system default.

Reading times across time zones

The SLA’s start and due times, like every date and time in Servicely, are shown in the viewer’s time zone. Take an SLA in a GMT+10 time zone with a 9:00 to 17:00 schedule and a 12-hour target, started at 9:30 GMT+10. In GMT+10 it is due at 13:30 the next working day. A user in GMT+8 sees it start at 7:30 and fall due at 11:30.

Last updated 18 October 2026commit 3ba12c8f0745Chris Jones
Back to top