Defining rules to delete work targets automatically
If you create a workspace and its related service portfolio manually (not using the Business Process templates) and link them to activate service level management, work targets linked to tickets are not deleted automatically if the ticket is deleted. To implement this action, you must create a business rule to delete any work targets linked to a ticket that is deleted.
To delete a work target record when the linked ticket is deleted
- Open the item where you want to define the rule:
- Click the Administration tab.
In the Service Portfolios section, click the name of the service portfolio, or click Manage to open the Service Portfolio Administration page. Then double-click the service portfolio.
The Service Portfolio details page appears.
- In the left pane, click Record Definitions.
The Items page appears.
- Double-click the Work Target item that you want to modify.
The Item details page appears.
- In the left pane, click Business Rules.
- Click New Business Rule and select an appropriate rule.
The Rule Builder page appears.
- In the Business Rule Name field, type a descriptive name for this rule.
- (Optional) In the Description field, type a description that explains the purpose of this rule.
- (Optional) In the State field, select Not active if this rule is not ready for use.
- (Optional) In the Business Rule Schedule field, accept the default of Run any time or select any work schedule configured for this container.
- In the Triggers section:
- Click Add trigger.
- In the Available Triggers field, select On Linked Item Delete.
- In the Link Type field, select Ticket/Work Target: Ticket.
- Click Create.
- (Optional) In the Criteria section, enter any applicable criteria.
No criteria are required for this rule.
- In the Actions section:
- Click Add new action.
- In the Action and field, select Delete Work Target.
- Click Create.
- Click Save.
Publish the workspace to implement your changes:
In the breadcrumb trail, click the Workspace link.
Click Save and Publish.
A confirmation message appears.
The Publication Succeeded message appears, showing the number of errors and warnings.