Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Use the API to get All Tickets - including Archived Tickets

Beantwortet


Gepostet 03. Aug. 2022

Hello,

I know that tickets are archived 120 days after being Closed and that the List Tickets endpoint does not return Archived tickets per the documentation here. What's unclear is whether the Search endpoint will return Archived tickets. When tickets are Archived do they maintain a status of Closed or is that status changed to some other value?

In other words, if I call the search endpoint with all status values (e.g. api/v2/search.json?query=type:ticket status:new status:open status:pending status:solved status:closed) and check the count attribute in the response, does that count include *all* tickets inclusive of Archived tickets?

If so, things work perfectly. If not, can you point me to documentation that explains how to get all tickets (including Archived tickets) via the API?

Thanks!


0

1

1 Kommentar

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey Scott,
 
Yes, the Search API will return archived tickets in the response. You can also use the Incremental Exports API to get the same results. This post goes in to more detail about where archived tickets are still accessible. 
 
Hope this helps!
 
Tipene

0


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post