Skip to main content

Incorrect ticket total count

  • November 26, 2019
  • 1 reply
  • 67 views

I'm getting the wrong total ticket count from the API. The request I'm doing is https://(instance).freshdesk.com/api/v2/search/tickets?query=status:2. The response contains 10 records, but the "total" field is 17. In the UI I'm also seeing 10 unresolved tickets. Why does the API return 17, and can this be fixed?

Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

  • Author
  • Contributor
  • 5 replies
  • November 26, 2019

The request posted is for "open" tickets. The request I'm doing for unresolved is the following: 


/api/v2/search/tickets?query=%22status%3A2+OR+status%3A3+OR+status%3A6+OR+status%3A7+OR+status%3A8+OR+status%3A9+OR+status%3A10+OR+status%3A11%22


(thus tickets with status 2, 3, 6, 7, 8, 9, 10, or 11)