How can I expose Time Tracking app data via the API?
1. Locate the field IDs for each of the custom ticket fields created by the time tracking app. To do this, go to the ticket fields endpoint and search for each of the following field names:
- Time spent last update (sec)
- Total time spent (sec)
You can also gather this information by going to Admin () > Manage > Ticket Fields. You will see a list of your ticket fields and the field IDs are displayed in the column Field ID.
2. Record the IDs somewhere you can easily access them.
3. Use the ticket audits endpoint to retrieve the fields' data. The data is recorded in seconds. Keep in mind that the audits endpoint stores the time tracking data under their field IDs, not their field names.