Zammad Time Accounting for an agent

is it possible to evaluate the time units for an agent?



In the admin area there are different possibilities to get an overview of the accounted times.

Hope this helps.

Cheers Yves

Hi Yves,

yes i know. but the question is: can each agent’s booked time be evaluated?

Yes and no.
Endpoints for the timeaccounting itself do not provide a detailed information which agent did book what.

However, the history can do that for you.

GET                         /api/v1/ticket_history/:id(.:format)                 tickets#ticket_history

The payload for that endpoint is fairly but, but contains time accounts for every update on the ticket that provided a new time. Similar like so:

            "id": 1806952,
            "o_id": 2,
            "related_history_object_id": null,
            "value_from": "",
            "value_to": "2.0",
            "created_by_id": 3,
            "created_at": "2020-04-20T08:02:44.496Z",
            "object": "Ticket",
            "type": "updated",
            "attribute": "time_unit"

Every entry that contains “attibute”: “time_unit” is accounted time.
The “created_by_id” is the actual user that caused the entry, so the agent in question.