Newly create ticket not getting in response using "search.json?query=updated>=2022-01-28T14:40:30Z ". | Community
Skip to main content

Newly create ticket not getting in response using "search.json?query=updated>=2022-01-28T14:40:30Z ".

  • January 31, 2022
  • 2 replies
  • 0 views

1) I have created one ticket on 30 Jan not when calling below services multiple time getting 

same one ticket in response - This is fine 

https://kovairhelp.zendesk.com/api/v2/search.json?page=0&per_page=5&query=updated>=2022-01-30T14:40:30Z type:ticket order_by:updated sort:asc

But now I have created new ticket today on 31 Jan and checking 

Using same above api request and getting only one ticket (created on 30 Jan)

Please advice why new ticket is not coming in response,Event  "updated>=2022-01-30T14:40:30Z"

any API limitation?

Again when am changing API url  (Updated date change to today date) like below then only one new ticket coming in response.
https://kovairhelp.zendesk.com/api/v2/search.json?page=0&per_page=5&query=updated>=2022-01-31T14:40:30Z type:ticket order_by:updated sort:asc

 

 

 

 

2 replies

Guided
  • January 31, 2022

Hello Deepak,

How long did you wait to search the ticket that you've created? There's some caching involved, so in my experience it could take up to 5 minutes before the newly created ticket will show up in a search result.

What's the ticket you get in response to your latest query? Because at the time of writing nothing should be updated on or after "2022-01-31T14:40:30Z", as that's about 2 hours in the future.

 


  • September 7, 2022

We have a similar issue and this issue needs more attention.

In general any immediate search.json done after ticket creation (async=true or NOT) will not return the ticket just created.

I see a simple way out that might not be to liking of zendesk: poll the search.json 'till you get the result.