How can I get the Total time spent value from time tracking App through API?

5 Comments

  • Abilash Amarasekaran

    Hi

    Oddly the timing is perfect. I am also looking something similar capability via API.

    I am looking to update the Total time spent value via API call when a ticket is created. 

    0
  • cuiwei

    Hey ZD team, anyone can help with this request? 

    Thanks

    0
  • Abilash Amarasekaran

    The values are stored in custom field. It is different for every account. Use the GET ticket API to view the tickets custom values .

    You can refer my answer if it helps.

    How to add total time spent value via API – Zendesk help

    0
  • cuiwei

    Hey Abilash,

    Thank you very much for sharing the information, it's great to hear you've figured out a way to get it work for you.

    The unfortunate thing is that might not be enough for me -- the tickets endpoint only shows the final total time spent when I query the data, but I'm looking for a way to get the number by each update on the ticket, so that I can know who updated the ticket in the past and how many minutes they spent on that one update, I tried to read the Ticket Activities, Ticket Audits and Ticket Comments but none of them seems to give a way to get that value.. I think I might need to look for another method

    0
  • Ross Edwards

    I think the Time Tracking app is a bit of an afterthought, and I don't believe the data it collects is available from the API.  Zendesk support please can you confirm?  We also have a need to pull time logs for individual user's updates, which I think is not that unusual a request.

    0

Please sign in to leave a comment.

Powered by Zendesk