Skip to main content

Incorrect ticket total count

  • Nov 26, 2019 12:51 PM UTC
  • 1 reply
  • 98 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?

This topic has been closed for replies.

1 reply

  • Author
  • Contributor
  • Nov 26, 2019 12:55 PM UTC

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)