Defining rules for sending SLM notifications
You can define rules for sending email notifications to assignees when response and resolution contract terms are breached or in danger of being breached. To configure this action, you need a field to serve as a flag that notification should be sent and two business rules: one in the work target and one in the ticket.
The following topics are provided:
Prerequisites
In the related service portfolio, if using the State field and Set State to Breached rule created by default are not sufficient for your purposes, create an additional Boolean type field in a Work Target item to serve as a flag to indicate the elapsed time has reached the notification threshold. If you are creating this field, a new ticket-rule should be created to have the email sent when this work target flag is set.
If you plan to use email templates with this rule, make sure to create them before proceeding. For more information, see Configuring-email-templates.
To define a rule for identifying breach issues
This rule is defined in the work target related to the ticket.
- Open the work target item where you want to define the rule:
- Click the Administration tab.
- In the Service Portfolios section, click service portfolio, or click Manage to open the Service Portfolio Administration page. Then double-click the service portfolio.
The container details page appears. - In the left pane, click Record Definitions.
- Double-click the Work Target item that you want to modify.
The Item details page appears.
- In the left pane, click Business Rules.
Icons for the rules associated with this item appear in the right pane. - Click New Business Rule and select After Save Rule.
The Rule Builder page appears. For detailed information about configuring different types of rules, see Types-of-business-rules. - In the Business Rule Name field, enter a descriptive name for this rule.
- (Optional) In the Description field, type a useful description.
- In the Business Rule Schedule field, accept the default of Run Any Time, or select from the work schedules defined for this container.
- In the Triggers section:
- Click Add New Trigger.
- In the Available triggers field, select Time based.
- In the Frequency field, select Check every x minutes.
- In the minutes fields, select 15 or a similar value for checking for breached work target thresholds.
- Click Create.
- In the Criteria section:
- Create criteria for the identifying the breach:
- Click Add New Condition.
- In the first field, select Elapsed Time %.
- In the Condition field, select greater than or equal to.
- In the Field Variables field, select Notification Threshold (%) and click Insert.
The Value field is updated to show the selected field. - Click Create.
- Create criteria for including only work targets in a specific state:
- Click Add New Condition.
- In the operator field, select AND.
- In the first field, select State.
- In the Condition field, select equal to.
- In the Value field, select Pending.
- Click Create.
- Create criteria for the identifying the breach:
- In the Actions section:
- Click Add New Action.
- In the Action and Method fields, select Set field value.
- In the next field, select the notification flag field that you created earlier.
- In the Value field, select True.
- Click Create.
- Click Save.
- Publish the container to implement your changes:
- In the breadcrumb trail, click the container link.
Click Save and Publish.
A confirmation message appears.
Click Yes.
The Publication Succeeded message appears, showing the number of errors and warnings.
To define a rule for sending breach notifications
This rule is defined in the ticket related to the work target.
- Open the ticket item where you want to define the rule:
- Click the Administration tab.
- In the Workspaces section, click the workspace, or click Manage to open the Workspace Administration page. Then double-click the workspace.
The container details page appears. - In the left pane, click Record Definitions.
- Double-click the Ticket item that you want to modify.
The Item details page appears.
- In the left pane, click Business Rules.
Icons for the rules associated with this item appear in the right pane. - Click New Business Rule and select Email Notification Rule.
The Rule Builder page appears. For detailed information about configuring different types of rules, see Types-of-business-rules. - In the Business Rule Name field, enter a descriptive name for this rule.
- (Optional) In the Description field, type a useful description.
- In the Business Rule Schedule field, accept the default of Run Any Time, or select from the work schedules defined for this container.
- In the Triggers section:
- Click Add New Trigger.
- In the Available Triggers field, select On Linked Item Update.
- In the Link Type field, select Ticket/Work Target: Work Target.
- Click Create.
- In the Criteria section:
- Click Add New Condition.
- In the first field, select Generic Linking.
- In the Condition field, select Any.
- In the Link Type field, select Ticket/Work Target: Work Target.
Additional fields appear for defining the required subcondition. - In the first field, select the notification flag field that you created earlier.
- In the Condition field, select equal to.
- Select the Value check box..
- Click Create.
The subcondition settings are saved. - Click Create again.
- In the Actions section:
- Click Add New Action.
- In the Action field, select Send email to.
- In the Recipient fields, select Assignees and then select or enter any other interested parties (additional recipients such as assignee's supervisor or managers).
- (Optional) In the Email Template field, select a template.
- (Optional) In the Importance field, select a delivery importance level.
- Click Create.
- Click Save.
- Publish the container to implement your changes:
- In the breadcrumb trail, click the container link.
Click Save and Publish.
A confirmation message appears.
Click Yes.
The Publication Succeeded message appears, showing the number of errors and warnings.
Related topics