Use an automation or the application programming interface (API) to close tickets in bulk. This archives the tickets and removes them from your views.
This article covers these sections:
Close tickets with the API
Use the API to close a large group of tickets. You can use the Advanced Data Privacy and Protection (ADPP) add-on or the ticket API endpoint.
Create a deletion schedule for advanced data retention policies
With the advanced data retention policies of the ADPP add-on, you can create a deletion schedule based on your ticket's Last Updated date and Brand. After you activate a schedule, it searches for and deletes tickets or end users that meet the conditions.
Use the API to bulk close tickets
Use the ticket API endpoint to find and manage tickets. For more information about the API, see Admin's guide to the Zendesk API.
If you're new to APIs, use Postman to send a request to your Zendesk Support account. For steps to use Postman to make API requests to your Zendesk account, see How do I set up Postman to make API requests to my Zendesk account?.
Create an automation to set ticket status to closed
Use an automation to create a time-based rule that closes your tickets.
To create this automation:
- Add a new automation
- Name the new automation
- Add these 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 have a specific status, use other conditions such as Ticket: Hours since open, Ticket: Hours since pending, and Ticket: Hours since solved.
- Ticket: Status category > Less than > Closed
- Under Perform these actions, select Ticket: Status category: Closed
- Click Create automation.