3 Comments

  • Daniel Pawluk
    Comment actions Permalink

    Cas,

    This is actually documented in the List Tickets section. You should be able to use a route like:

    GET /api/v2/users/{user_id}/tickets/requested.json

    That should give you a count of tickets and easily allow you to filter and reduce this list to yield stats per status. I hope this helps. If you would like a more specific example please let me know, I would be happy to make one. Thanks!

    Dan 

    0
  • James
    Comment actions Permalink

    Daniel - Was searching for some tips and came across this post and wondering if you can offer some more info / guidance.  I want to be able to run a trigger and/or an automation based on the # of tickets created by a requester.  I do not see any clear path to doing this so I was trying to find a way to use an http target to request a count value on a given requester which could then be set into a numeric field at the user level.  I could then reference that value in a triggers and/or automation.  Make sense? 

    So, that said - any advice on how to call the api to get a count value instead of a list?  Essentially, I need the below value...

    Thanks!!!

    0
  • Daniel Pawluk
    Comment actions Permalink

    Hi James, the first page returns a count as part of the data. It should be in the top level object as `count`. That count refers to all requested tickets. I hope that helps. 

    0

Please sign in to leave a comment.

Powered by Zendesk