Solved

API v2 / Show Custom Ticket View

  • 4 April 2023
  • 3 replies
  • 203 views

Badge

We have an API Integration to show tickets of specific custom views running on APIv1

We now want to do the same thing in APIv2 but we are not able to find an option in the documentation to list tickets of a specific view_id


The old address was:

https://<domain>.freshservice.com/helpdesk/tickets/view/<view_id>?format=json

So we just had to change the ID and get a list of all Tickets of this specific view.

 

How do we get this data now?

 

Its really sad that a really useful feature is not available in the new version anymore.

icon

Best answer by PM Steve 13 April 2023, 12:14

View original

3 replies

Userlevel 7
Badge +13

We have an API Integration to show tickets of specific custom views running on APIv1

We now want to do the same thing in APIv2 but we are not able to find an option in the documentation to list tickets of a specific view_id


The old address was:

https://<domain>.freshservice.com/helpdesk/tickets/view/<view_id>?format=json

So we just had to change the ID and get a list of all Tickets of this specific view.

 

How do we get this data now?

 

Its really sad that a really useful feature is not available in the new version anymore.

I would recommend posting that as a ide to be added to the API. 

A workaround would be to use the https://api.freshservice.com/v2/#filter_tickets function. 
 

Badge

Thank you! I got nearly everything now with the filter function.

The only thing im not able to do is “Open and Unresolved in Group XX”

The string is:

https://peakmedia.freshservice.com/api/v2/tickets/filter?query="group_id:10000315020%20AND%20status:2%20OR%20status:3%20OR%20status:7%20OR%20status:12%20OR%20status:13"

But i get tickets from an group that is not mentioned in the prompt.

Does anyone know how to do that properly?

BR Steve

Badge

Found it!

For anyone looking for a solution for “Open and Pending Tickets from Group X”:

https://domain.freshservice.com/api/v2/tickets/filter?query="group_id:XXXXXXXXX%20AND%20(status:2%20OR%20status:3%20OR%20status:7%20OR%20status:12%20OR%20status:13)"

 

Reply