This recipe will show you how to configure Service Manager to send an e-mail notification when a work item moves into either an SLA warning or breach state.
Ensure Service Levels are fully configured by following the previous recipes in this chapter.
It is also assumed that you have set up an SMTP channel for e-mail.
The following steps will guide you through the process of creating notifications within Service Manager for when an SLA goes into warning or breach:
You can type custom text, or you can use the Insert... button to insert tokens, or a combination of both:
These tokens will dynamically resolve to information stored within Service Manager. For example, using the Select Property screen that opens and choosing ID under the Work Item has Service Level Instance Information work item will provide this token string back to the e-mail template design screen:
This long text will actually resolve the ID of the affected work item with the SLA breach, so if it was an incident, the ID might be IR324, for example.
If you intend to use the Exchange Connector with Service Manager then it is advisable to wrap any incident IDs with square brackets, for example, [IR324].
To do this, just add the opening bracket "[" before the token and the closing bracket "]" after the token.
For example, using the token shown in the screenshot, this would now look like the following:
[$Context/Path[Relationship='CustomSystem_SLA_Library! System.WorkItemHasSLAInstanceInformation'SeedRole= 'Target'TypeConstraint='CustomSystem_SLA_Library! System.WorkItem']/Property[Type=CustomSystem_SLA_ Library!System.WorkItem]/Id$]
SLA Warning - Incident:
:
There are two tabs on the Additional Criteria screen, Changed From and Changed To.
We created a template that defined the information and layout of the message we want to send, and then we created a subscription that defines what event (change of SLA status to warning) causes the e-mail to be sent and to whom.
This recipe can be followed for breaches of SLA rather than just warning, except for a couple of key changes.
When setting the additional criteria, we need the Changed From criteria setting as equals Warning and the Changed To criteria setting as equals Breached.
You must create a specific e-mail notification template just for breaches. Be sure to choose this template when creating the subscription.
Also, ensure names and descriptions are reflective of the intent of the notification.