Skip to main content

Hi,

Is there a way to get the amount of unasigned tickets from Freshservice?µ

We use PRTG monitoring and want this on the dashboard.

 

Kind regards,

 

David

Hi ,

 

I believe you are trying to pass tickets from the unassigned queue into an external system. We do have an API to filter tickets based on the agent assigned to the ticket. The article for the API can be found here :https://api.freshservice.com/#filter_tickets

 

You can get the list of tickets with no agent assigned using the below CURL command:

 

curl -v -u user@yourcompany.com:test -X GET 'https://domain.freshservice.com/api/v2/tickets/filter?query=%agent_id:null%22'

 

So , to filter these tickets , we will have to use the agent’s ID and pass them into the API through the query params. Since , we are trying to retrieve the unassigned tickets , we will have to set the agent ID as null and pass it into the API as shown in the below screenshot:

faXv3c0HhTglU5McVpViSUTWmVNcLowHc05BXdnAIG1h_gMg8Fv4y5usjKmqGizx1FrH-hmd7E0NezmuMT9ig37ylhENh633Av0VST3FZQrQbVcvPKT9RDqRaOP_Dj5f3o-xDvSO

This will provide you all the tickets which are present in the unassigned queue at the moment.  

 

Regards,

G.Adhitya


Hi,

We do not need to pass the tickets we just want to count the unasigned tickets.

Then we can see the amount of unasigned in prtg dachboard.

Like you can see on the Freschservice dashboard unasigned tickets.

 

Thanks!

 

 

 


Hi ,

 

Good day!

 

We do not have a direct way to get the count of the unassigned tickets in the queue. The result returned from the API will be in the form of an Array with multiple object, with each object representing a single ticket. The solution for the same is to have the response collected by calling the API and iterating the response by running a loop on the array and counting the number of objects which gives the total number of unassigned tickets.

 

Regards,

G.Adhitya