Service level agreements
Hold Issues, or any RecType with a status, to response and resolution deadlines.
A Service Level Agreement (SLA) sets how fast a record must get its first response and its resolution, per priority, counted over working hours. It applies to Issue by default. Pick another RecType in Apply On, such as Lead, and ERP adds the SLA fields to it.
Turn on Track Service Level Agreement in Support Settings first.
Set one up
Create a Service Level Agreement. Set Apply On (Issue), Service Level Name, and either tick Default Service Level Agreement or give it a Condition or an Entity.
Add a Priorities row per Issue Priority with First Response Time and Resolution Time. Tick Default Priority on exactly one row.
Add Working Hours: one row per workday with Start Time and End Time. Pick a Holiday List.
List the statuses that fulfil the SLA (SLA Fulfilled On, such as Resolved and Closed) and the ones that pause it (SLA Paused On, such as Replied).
The record is named SLA-<Apply On>-<Service Level Name>, for example SLA-Issue-Default.
How a record gets its deadlines
On every save ERP finds the Agreement that fits the record and computes:
- Response By and Resolution By, counted only inside the working hours and skipping the Holiday List's days.
- The agreement status: First Response Due, then Resolution Due after the first reply, then Fulfilled or Failed.
- Hold time. A paused status stamps On Hold Since and clears Resolution By. When the record leaves it, the held time adds to Total Hold Time and the deadline moves by it.
A deadline missed gives Failed and writes an "Assigned" comment naming the users with open ToDos on the record.
Example
Working hours are 09:00 to 17:00, Monday to Friday. The Holiday List holds Tuesday 2019-03-05. Medium priority has a 4 hour response time and a 6 hour resolution time.
| Event | Result |
|---|---|
| Issue created Monday 2019-03-04 14:00 | Response By Wednesday 10:00, Resolution By Wednesday 12:00 |
| Reply sent Monday 15:00 | First Response Time 1 hour, status Resolution Due |
| Status Replied at 15:00, customer answers at 16:00 | Total Hold Time 1 hour, Resolution By moves to Wednesday 13:00 |
| Closed Wednesday 12:30 | Fulfilled |
Condition and entity
Condition is a Cardinal expression over the record's fields as bare names, not Python:
issue_type == 'Critical'A save refuses a condition that names a field the RecType lacks. Entity Type (Customer, Customer Group or Territory) with Entity limits the Agreement to that party.
Checks on save
| Refused | Message |
|---|---|
| No default priority row | Select a Default Priority. |
| Response time above resolution time | Response Time for Low priority in row 1 can't be greater than Resolution Time. |
| A priority or workday twice | Priority Low has been repeated. |
| Start Time not before End Time | Start Time can't be greater than or equal to End Time for Monday. |
| A second default for the same RecType | Default Service Level Agreement for Issue already exists. |
| Apply On a RecType without a status field | The Document Type Issue Priority must have a Status field |
Fields that matter
| Field | Use |
|---|---|
| Apply On | The RecType. Must have a status field |
| Enabled | Off stops the Agreement from applying |
| Start Date, End Date | A daily job disables Agreements past their End Date |
| Apply SLA for Resolution Time | Off tracks the first response only |
| Default Priority | Priority given to a record with none |
| Holiday List | Days the clock skips |