Summary: ◀▼
Use this reference to choose conditions and actions when building time-based automations. Find ticket, requester, and organization criteria—including status, priority, tags, custom fields, and elapsed time—and configure actions to update tickets, assign teams or agents, change tags, or send notifications. Review time-based condition rules and limitations to help automations run as intended.
This article describes the different conditions and actions available when creating automations. For information on creating new automations, see Creating and managing automations for time-based events.
This article contains the following sections:
Building automation condition statements
As with triggers, the condition statements you create for automations contain conditions, operators, and values. These include conditions you’d expect such as priority, status, assignee and so on. Because automations are based on the hours that have elapsed since a ticket update was made, Zendesk provides the following time-based conditions:
- Hours since created
- Hours since status category open
- Hours since status category pending
- Hours since status category on-hold
- Hours since status category solved
- Hours since status category [category name]
- Hours since assigned (to an agent)
- Hours since update
- Hours since requester update (for updates made by the requester)
- Hours since assignee update (for updates made by the assignee)
- Hours since due date (for tickets with the type set to Task)
- Hours until due date (for tickets with the type set to Task)
- Hours since last SLA breach
- Hours until next SLA breach
- (Enterprise only) Hours since last Group SLA breach
- (Enterprise only) Hours until next Group SLA breach
- Hours since ticket status open
- Hours since ticket status pending
- Hours since ticket status on-hold
- Hours since ticket status solved
- Hours since ticket status [custom ticket status name] (available if you've created custom ticket statuses).
Note the following restrictions when using time-based conditions:
- Time-based conditions aren't available from Meet any of these conditions section of the automation creator (see Creating and managing automations for time-based events). Automations require a nullifying condition to ensure that they aren't running continuously.
- Due date refers to 12 PM in your account's timezone on the date specified.
- Only whole numbers can be used as the value for these conditions. For example, Hours since created = (calendar) is = 1, is valid. Decimals aren't supported. If you set the hours since variable to 1.5, it will be interpreted as 1, which means that it was rounded down to the whole number.
- Hours since [status] conditions, such as Hours since open, only fire if the ticket remains in that status or status category. For instance, if you create an automation that fires when Hours since open is 2, it will not fire if the status changes from open to pending before the two hours are up.
- The is condition for Hours since applies only for a certain timeframe. For example, if you create an automation that includes Hours since solved is 24, but the automation runs after 24 hours have passed, the automation will not fire. Consider using Greater than or Less than for these types of conditions.
- Hours since update means that any update to the ticket – including an automation firing – will update the ticket.
- Hours until > less than conditions are inclusive (they include both "less than" and "equal to"). For example, Hours until next SLA breach > less than > 2 can fire at exactly two hours before the SLA breach time. All other time-based conditions are exclusive.
- Because automations can't update or change closed tickets, there isn't an Hours since closed time-based condition.
| Condition | Description |
|---|---|
| Ticket: Status category |
Note: If your Zendesk account was created before Jan
17, 2023, and you have not activated custom ticket statuses, refer
to the Ticket: Status condition instead.
The status category values are: New is the initial status category of a newly created ticket (not assigned to an agent). The Open status category is for grouping ticket statuses that indicate when tickets are ready to be worked on by your support team. The Pending status category is for grouping ticket statuses that are used to indicate that the support team is waiting for the requester to reply. The On-hold status category contains ticket statuses used to indicate that the support request is awaiting a resolution from a third party—someone who is not a member of your support staff and does not have an agent account in your Zendesk. This status category is optional and must be activated.The Solved status category contains ticket statuses that indicate that the customer’s issue has been resolved. The Closed status category contains the Closed system ticket status that indicates that the ticket has been locked and cannot be reopened or updated. When selecting a status category, you can use the field operators Less Than and Greater Than to specify a range of tickets based on their status category. New is the lowest value, with values increasing until you get to Closed status category. For example, a condition statement that returns tickets only in the New, Open, and Pending categories looks like this: Status category is less than Solved. |
| Ticket: Status |
Note: This condition is available if your account was
created before January 17, 2023 and you have not activated custom ticket statuses.
Otherwise, refer to Ticket: Status category.
The standard ticket status values are: New is the initial status of a newly created ticket (not assigned to an agent). Open means that the ticket has been assigned to an agent. Pending is used to indicate that the requester has been asked for information and the ticket is therefore on hold until that information has been received. On-hold means that the support request is awaiting a resolution from a third party—someone who is not a member of your support staff and does not have an agent account in your Zendesk account. This status is optional and must be activated. Solved indicates that the customer’s issue has been resolved. Tickets remain solved until they are closed. Closed means that the ticket has been locked and cannot be reopened or updated. When selecting a status, you can use the field operators Less Than and Greater Than to specify a range of tickets based on their status. New is the lowest value, with values increasing until you get to Closed status. For example, a condition statement that returns only New, Open, and Pending tickets looks like this: Status is less than Solved. |
| Ticket: Brand (not available on Team plans) |
Checks whether a ticket is associated with the specified brand. |
| Ticket: Ticket status | Select system ticket statuses and custom ticket statuses as conditions.
Note: If your account was created before January 17, 2023 and
you have not activated custom ticket statuses, use
Ticket: Status instead.
|
| Ticket: Form (Enterprise plans only) |
Your ticket forms are available as conditions. Select a specific form. |
| Ticket: Type |
The ticket type values are: Question Incident is used to indicate that there is more than one occurrence of the same problem. When this occurs, one ticket is set to Problem and the other tickets that are reporting the same problem are set to Incident and linked to the problem ticket. Problem is a support issue that needs to be resolved. Task is used by the support agents to track various tasks. |
| Ticket: Priority | There are four values for priority: Low, Normal, High, and Urgent. As with status, you can use the field operators to select tickets that span different priority settings. For example, this statement returns all tickets that are not urgent: Priority is less than Urgent |
| Ticket: Group | The group values are:
Additional value for views:
|
| Ticket: Assignee |
The assignee values are:
Additional value for views:
|
| Ticket: Requester |
The requester values are:
Additional value for views:
|
| Ticket: Organization | The organization values are:
|
| Ticket: Tags |
You use this condition to determine if tickets contain a specific tag or tags. You can include or exclude tags in the condition statement by using the operators Contains at least one of the following or Contains none of the following. More than one tag can be added. Tags must be separated with spaces. |
| Ticket: Description | The description is the first comment in the ticket, whether it's public
or internal. It does not include the text from the subject line of the ticket. If you are using the Contains at least one of the following or Contains none of the following operators, the results will consider words containing part of the entered search terms. For example, using "none" for this condition will return (or exclude) ticket descriptions containing "nonetheless". The description condition also pulls data contained within the HTML and the original source of a ticket. |
| Ticket: Channel | The ticket channel is where and how the ticket was created. The contents of this list will differ depending on the channels you have active, and any integrations you are using. For more information about the channels you can configure, see About Zendesk Support channels and Understanding ticket channels in Explore. |
| Ticket: Integration account | This condition checks the integration account that the ticket came from, such as a specific Facebook page, X (formerly Twitter) handle, or other channel integration account, like GooglePlay. Select one of your configured integration accounts from the drop-down menu. |
| Ticket: Received at | Checks whether a ticket Is or Is not received by one or more email addresses. This condition checks the email address from which the ticket was received and the email address from which the ticket was originally received. These values are often, but not always, the same. The ticket can be received from a Zendesk email domain such as sales@mondocam.zendesk.com, or from an external email domain such as support@acmejetengines.com. The external email domain must be set up as described in Forwarding incoming email to Zendesk Support or the condition won't work. This condition only works for valid support addresses. This condition could be met by an email address in the CC field if it's associated with a valid support address. Email configurations like Google Groups, aliases, and distribution groups are not supported for Zendesk support addresses, and they may not meet this condition. This condition doesn't check the channel from which the ticket originated and can be true for tickets that weren't received through email. For example, when using the Select an Address app, you can specify a recipient email address and therefore meet this condition even though the ticket was created in the agent interface. If you're using an external address that is connected through forwarding, this condition will also be met by a Zendesk support address that received it. For example, if sales@mondocam.com forwards to sales@mondocam.zendesk.com, then both addresses will meet this condition. If you're using an authenticated connector instead of forwarding, this condition will only be met by the external support address. |
| Ticket: Satisfaction (Not available on Team plans) |
Supports the following customer satisfaction rating values:
|
| Ticket: Privacy | This condition checks to see if a ticket has public comments or not. You can
select either:
|
| Ticket: Custom fields | Date, drop-down, and multi-select custom fields are available as
conditions. Checkbox custom fields are available as automation conditions only when the checkbox is configured to set a tag. |
| Requester: Language | The language of the person who submitted the ticket. |
| Requester: Custom fields | Custom user fields are available as conditions. |
| Requester: Role | Adds a condition to your triggers to create a different workflow when the requester is an end user versus an agent. |
| Organization: Custom fields | Custom organization fields are available as conditions. If the automation has a condition like the following: Organization: field > Is not > value The statement will be true only if the ticket has an organization and that organization's field doesn't match. If the ticket does not have an organization, this type of condition will not be true. |
| Ticket sharing: Sent to | Checks whether a ticket was shared to another Zendesk via a specific ticket sharing agreement. |
| Ticket sharing: Received from | Checks whether a ticket was shared from another Zendesk via a specific ticket sharing agreement. |
| Ticket: Service catalog form |
Used to check that the ticket uses a specific
service request forms.
Available only when the service catalog is turned on. |
Building automation action statements
Action statements define what occurs if all the condition statements are true and the trigger fires. You can think of action statements as ‘then’ statements. If all of your conditions are true then invoke these actions to update the ticket and optionally send notifications.
| Action | Description |
|---|---|
| Ticket: Status | The system ticket status values can be set to the following: New is the initial status of a newly created ticket (not assigned to an agent). Open means that the ticket has been assigned to an agent. Pending is used to indicate that the requester has been asked for information and the ticket is therefore on hold until that information has been received. On-hold means that the support request is awaiting a resolution from a third party—someone who is not a member of your support staff and does not have an agent account in your Zendesk. Solved indicates that the customer’s issue has been resolved. The ticket is solved even if required ticket fields are still blank. Tickets remain solved until they are closed. When tickets are closed is based on business rules you define for this step in the workflow, using automations. Closed means that the ticket has been locked and cannot be reopened or updated. |
| Ticket: Status category |
Note: If your Zendesk account was created before Jan
17, 2023, and you have not activated custom ticket statuses, use
Ticket: Status instead.
When you use a status category as an action, the
ticket status is set to the category's default ticket status.The status category values are: New is the initial status category of a newly created ticket (not assigned to an agent). The Open status category is for grouping ticket statuses that indicate when tickets are ready to be worked on by your support team. The Pending status category is for grouping ticket statuses that are used to indicate that the support team is waiting for the requester to reply. The On-hold status category contains ticket statuses used to indicate that the support request is awaiting a resolution from a third party—someone who is not a member of your support staff and does not have an agent account in your Zendesk. This status category is optional and must be added to your Zendesk (see Adding on-hold ticket status to your Zendesk).The Solved status category contains ticket statuses that indicate that the customer’s issue has been resolved. The Closed status category contains the Closed system ticket status that indicates that the ticket has been locked and cannot be reopened or updated. |
| Ticket: Ticket status | Specify actions that set the ticket status to a system ticket status or a
custom ticket status.
Note: If your account was created before January 17, 2023 and
you have not activated custom ticket statuses, use
Ticket: Status instead.
|
| Ticket: Form (Enterprise plans only) |
Your ticket forms are available as actions. Select a specific form. |
| Ticket: Priority | The priority can be set to
Low, Normal, High or Urgent
|
| Ticket: Type | The type can be set to the following: Question Incident indicates that there is more than one occurrence of the same problem. When this occurs, one ticket is set to Problem and the other tickets that are reporting the same problem are set to Incident and linked to the problem ticket. Problem is a support issue that needs to be resolved. Task is used by the support agents to track various tasks. |
| Ticket: Group | You can set groups to any of the following:
Additional value for macros:
|
| Ticket: Assignee | You can set the assignee to any of the following:
Additional value for triggers and macros:
|
| Ticket: Satisfaction | You can set this action to: offered to requester, which
indicates that the survey request has been sent to the ticket requester. Currently,
this action doesn't work with messaging.
|
| Ticket: Set tags | The tags you want to insert into the ticket. The set tag action deletes
all tags currently applied to the ticket, or associated with any ticket fields, and
replaces them. Tags must be separated with spaces. |
| Ticket: Add tags | The tags you want to add to the existing list of
tags (if any). Tags must be separated with spaces. |
| Ticket: Remove tags | The tags that you want removed from the existing
list of tags contained in the ticket (if any). Tags must be separated with
spaces. |
| Ticket: Add cc | Add an agent on the ticket update. This action is available when you activate CCs on tickets.. |
| Ticket: Add follower | Add an agent or the current user as a follower on the ticket update. This action is available when you activate CCs and Followers on tickets. When you activate this feature, the Ticket: Add follower action replaces the Ticket: Add CC action. |
| Ticket: Custom fields | Checkbox, drop-down, date, and multi-select custom fields are available as actions. |
| Ticket: Share ticket with (Zendesk Suite Growth and above or Support Professional and above only) |
Share the ticket with the specified account. Requires that a ticket sharing
agreement be in place. See Sharing tickets with other Support accounts and Using business rules to share tickets. |
| Notifications: Email user | You can set the email user to any of the following:
Additional values for triggers and automations:
The email notification is sent only if the update includes a public comment. If the update has a private comment or no comment, the trigger or automation can still fire other actions, but it won't send the notification. There's a known limitation for using the Email user + (requester and CCs) action and the Ticket + is + Updated conditions in triggers. When used together, Support suppresses emails to a user if the ticket update is from that same user. This is expected behavior to eliminate redundant emails. For more information about suppression, see Understanding suppression of CCs email notifications. Adding the email user action allows you to enter the email subject and body text. Body text can be formatted using HTML or placeholders. See Using placeholders for more information on formatting with placeholders. If you select a different notification destination when editing a trigger or automation, the body text will reset. |
| Notifications: Email group | You can set email group to any of the following:
If you select a different notification destination when editing a trigger, the body text will reset. |
| Notifications: Notify active webhook | Set the active webhook to notify. For more information about
using webhooks, see Creating a webhook.
If you select a different notification destination when editing a trigger, the body text will reset. |
| Notifications: Notify target | Set the external email target to notify. For more information about
using email targets, see Notifying external email targets. If you select a different notification destination when editing a trigger, the body text will reset. |
| Notifications: Tweet requester | Respond to the X (formerly Twitter) requester with a tweet. An @mention, and shortened ticket URL are added to the message so make sure to stay within the maximum Tweet length. |
| Requester: Language | Set the requester's language to one of your supported languages. |
| Requester: Custom fields | Custom user fields are available as actions. |
| Organization: Custom fields | Custom organization fields are available as actions. |
Article Q&A
Click to view
What should I know before using time-based conditions in an automation?
Time-based conditions include hours since or until ticket creation, status changes, assignment, updates, due dates, and SLA breaches; group SLA conditions are Enterprise-only. Use whole numbers—decimals are rounded down—and place these conditions under “Meet all,” not “Meet any.” A “Hours since [status]” condition applies only while the ticket remains in that status, and “is” matches only during a specific timeframe. Consider “Greater than” or “Less than” for a wider timeframe. There is no “Hours since closed” condition.
How can I set a ticket’s status with an automation?
Use the Ticket: Status action to set a system status, or Ticket: Ticket status to set a system or custom status. You can also use Ticket: Status category; that sets the ticket to the category’s default status. If your account predates January 17, 2023 and you haven’t activated custom ticket statuses, use Ticket: Status.
What’s the difference between the set, add, and remove tag actions?
Set tags deletes the ticket’s existing tags, including tags associated with ticket fields, and replaces them with the tags you specify. Add tags appends tags to the existing list, while Remove tags deletes specified tags from it. Separate multiple tags with spaces.
When does an automation’s Email user action send a notification?
You can choose the requester, assignee, a named email user, or other available recipients such as the current user. The email is sent only when the update includes a public comment. If the update has a private comment or no comment, other automation actions can still run, but the email notification isn’t sent.