Get all tickets

Answered Guest 8 years ago

Hello,


I would like to know if there is a way to get all the tickets, event the close ones.


Thank you!

Replies (2)

photo
1

You can get all the tickets by using reports from left agents bar. Just click on Browse and select type-tickets

photo
1

But with the API is this possible?

photo
1

Yes, it is. In order to do this make GET request to the following url: https://<useresponse_url>/api/3.0/tickets.json?status_id=all.

You can find more details in the API Doc attached to this article.

photo
1

Perfect thx! But it's there a way to return everything and not by page?


Thank you

photo
1

There are no way to retrieve all tickets but you can specify count option. The number of tickets per page depends on this option. For example:

https://<useresponse_url>/api/3.0/tickets.json?status_id=all&count=100

photo
1

The API 3.0 Doc referenced in the first comment does not specify "status_id" as a valid parameter, rather, it states "status" should be used. Setting the GET parameter "status" to "completed" (as stated in the API Doc) will not return completed tickets, it returns "success" => 1.


Unfortunately, our dev team spent hours finding the correct helpdesk model/controller in the source to modify this prior to seeing this comment.

photo
1

Hello Nathan,

Yes, there are several undocumented options. We've adjusted the status option. The API Doc is updated. Please unzip attached archive to application/3.4.5/modules directory. When it is done you can use the following request in order to get active and completed tickets:

https://<useresponse_url>/api/3.0/tickets.json?status=all&count=100

Files: fix.zip
photo
Leave a Comment
 
Attach a file