Skip to main content
Solved

API v2 / Show Custom Ticket View


Forum|alt.badge.img

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.

Best answer by PM Steve

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)"

 

View original
Did this topic help you find an answer to your question?

3 replies

Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
PM Steve wrote:

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. 
 


Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • April 5, 2023

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


Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • Answer
  • April 13, 2023

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)"