Question
How can I view which tickets an automation has run on?
Answer
You can identify tickets in different ways:
Identifying tickets with Zendesk
To see the tickets on which a particular automation has been executed:
- Login to Zendesk as an administrator.
- Use this URL:
http://yoursubdomain.zendesk.com/rules/Automation_ID/tickets
- From the URL, replace
yoursubdomain
with your actual Zendesk subdomain andAutomation_ID
with the specific number ID that appears at the end of your automation URL.
For example, the belowAutomation_ID
is6241523731727
:
Note: The system only shows this information for the past 41 days. It does not display email addresses. Check the ticket events to find related email addresses.
Identifying tickets with the API
If you're comfortable with updates to the API, programming language updates, and evolving technology, you can create a script to identify the affected tickets
- Retrieve the UNIX timestamp for when the automation started or the change was made to your field.
- Enter the values above in to the incremental events API endpoint to make a call to your account and obtain the ticket events that have taken place since that time. If you don't have the exact date and time, look at your tickets for the time changes started to occur, look for when that field was last updated, or make a guess with a good time buffer to it.
- Once you pull those events, you can look for the
Automation ID
that did the unwanted action. If you don't know theAutomation ID
, that should be listed in the List Automations endpoint. Then, pull ticket IDs from those events that contain the automation.
Once you have your affected tickets list, you can use the Update Many Tickets endpoint for bulk actions with a list of tickets.
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Zendesk also can't provide support for third-party technologies such as JavaScript, jQuery, or CSS. Post any issues you have in the comments section or try searching for a solution online.
For more information, see these articles:
0 comments