Surfacing Time Tracking app data via the API Follow

Comments

2 comments

  • Avatar
    Adam Weiss

    If you're looking for significantly more detailed time data, you can find it via Ticket Audits: https://developer.zendesk.com/rest_api/docs/core/ticket_audits

    Note that it's somewhat buried...

    {
      "id": <AUDIT ID>
    ...
      "events": [
        {
          "id": <EVENT ID>
          "type": "Change",
          "value": 360, (this is the NEW TOTAL)
          "field_name": <YOUR TOTAL TIME SPENT FIELD ID>,
          "previous_value": 0 (this is the value it was before)
        },
    ...
      ]
    ...
    }

    Want to know how much time for each "event"? Just subtract "value" from "previous_value".

  • Avatar
    Nicole Relyea

    Thanks for the info, Adam!

Please sign in to leave a comment.

Powered by Zendesk