Get all tickets of an requester | Community
Skip to main content

Get all tickets of an requester

  • September 6, 2017
  • 3 replies
  • 0 views

What is the fastest way for me to get all tickets of an requester after knowing requester_id via API?

After creating ticket, I use "client.search" function to search all tickets of requester, but the lastest ticket is not a part of these.

Is there any way?

This topic has been closed for replies.

3 replies

Dwight
  • September 6, 2017

Greetings Pm Tuan and welcome to our Community!

The best way to get tickets for a given requester would likely be the list-tickets endpoint: 

   https://{subdomain}.zendesk.com/api/v2/users/{user_id}/tickets/requested.json

More information on this (and similar endpoints) can be found at https://developer.zendesk.com/rest_api/docs/core/tickets#list-tickets 

As a side-note: the reason you may not be seeing the most recent ticket is likely related to the indexing delay for our search - tickets can take a few minutes to index before they're indexed by search (dependent upon a number of factors).

Please let us know if that helps to answer your question!


  • March 28, 2019

Hi Dwight,

Same issue we are facing,

I am using same approach as you explained here but still same issue we are facing as @Tuan said,

For details could you please see my below post,

https://develop.zendesk.com/hc/en-us/community/posts/360028701154--API-How-to-get-updated-ticket-details-through-API-

Could you please let me know about this?


  • April 1, 2019

Please see answer in cross-post. If after considering any indexing delay if expected results are not coming back, then a ticket to support@zendesk.com will be needed.

I'm going to close this particular post off for further comments since there's a cross-post and the original post is somewhat dated (1 1/2 years ago).