最近搜索


没有最近搜索

Use the API to get All Tickets - including Archived Tickets

已回答


已于 2022年8月03日 发布

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 条评论

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


请先登录再写评论。

找不到所需的内容?

新建帖子