We have a large number of tickets that did not close. I want to mark them all as closed so they can be archived and not show in my views. How can I close a large number of tickets?
There are two options you can use to automatically close tickets. You can either use API or create a business rule to set all ticket status from a set time range to close.
- Use API to bulk close tickets
If you or one in your team is comfortable to use API, use the ticket API endpoint to identify and manage the tickets. For more information about what is API, see the article: Admin's guide to the Zendesk API.
If you are unfamiliar with APIs, you can use Postman to make an API request to your Zendesk Support account. For more information on how to use Postman to make API requests to your Zendesk account, see the article: How do I set up Postman to make API requests to my Zendesk account?
- Create an automation to set ticket status to close
Use automation to create a time-based business rule to close all your tickets. Below is an example you can use.
- Click the Admin icon () in the sidebar > Business Rules > Automations > Add automation.
- Set a title for the new automation.
- Add the following conditions under Meet all of the following conditions:
- Ticket: Hours since update > Greater than > (Specify the time here) - If the tickets you want to close are on a specific status, you can use other conditions such as Ticket: Hours since open, Ticket: Hours since pending, and, Ticket: Hours since solved.
- Ticket: Status > Less than > Closed
Add the following conditions under Perform these actions:
- Ticket status: Closed
- Click Create Automation.
For the original conversation, see Closing a large amount of tickets.