Workflow: How to automatically set priority on tickets for SLA targets

To apply a service level agreement (SLA) to your tickets, you must set the Priority field on the ticket first. Use the steps below to automate this with triggers. The workflow includes the steps below:

Expand all tabs



document.addEventListener('DOMContentLoaded', function () {
const toggleBtn = document.getElementById('master-toggle');

toggleBtn.addEventListener('click', function () {
const action = this.getAttribute('data-action');
const headers = document.querySelectorAll('.accordion');

headers.forEach(header => {
const isActive = header.classList.contains('active');
const panel = header.nextElementSibling; // Grabs the corresponding .panel container

if (action === 'expand' && !isActive) {
// Open it by simulating a standard click
header.click();
} else if (action === 'collapse' && isActive) {
// Close it by simulating a standard click
header.click();
}
});

// Flip button text and states
if (action === 'expand') {
this.setAttribute('data-action', 'collapse');
this.textContent = 'Collapse all tabs';
} else {
this.setAttribute('data-action', 'expand');
this.textContent = 'Expand all tabs';
}
});
});
Step 1: Create a trigger that sets priority for all tickets for your SLA
Triggers can set ticket priority so SLAs apply. In the example below, the trigger sets all tickets to the same priority.
To create a trigger that sets priority for all tickets:

In Admin Center, click Objects and rules in the sidebar, then select Business rules > Triggers

On the triggers page, click the Ticket tab
Click Create trigger

Add the conditions under Meet ALL of the following conditions: Object > Ticket > Ticket | Is | Created and Object > Ticket > Priority | Is | -

Add the action under Actions: Object > Ticket > Priority | Normal

Click Create trigger



Step 2: Modify this trigger to set priority based on keywords
You can use any ticket property, such as a custom field, to set ticket priority. In this example, use keywords as trigger conditions. The trigger sets the priority based on the keywords in the ticket.
To create a trigger that sets priority based on keywords:

In Admin Center, click Objects and rules in the sidebar, then select Business rules > Triggers

On the triggers page, click the Ticket tab
Click Create trigger

Add the conditions under Meet ALL of the following conditions: Object > Ticket > Ticket | Is | Created and Object > Ticket > Comment Text | Contains at least one of the following words | sales

Add the action under Actions: Object > Ticket > Priority | Normal

Click Create trigger



Step 3: Verify that you set up the trigger correctly
View the ticket events to verify that your trigger runs correctly. The ticket events include all triggers applied to the ticket and reflect changes in ticket priority. For instructions on how to view ticket events, see Viewing all events for ticket updates.
For other questions about the ticket priority field, see:

How to set the ticket priority based on the support email address?
Can I edit the priority field?

