Reports and data
Report time in state
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the tickets:read ability
Query parameters
fromstringFirst day, 2006-01-02. Defaults to 30 days ago.
tostringLast day included, 2006-01-02. Defaults to today.
Response 200
OKdataobject[] | nullrequiredThe items, as a list; empty when there are none.
Show child attributesHide child attributes
groupstringrequiredThe state's fixed group: submitted, in_progress, waiting_customer, waiting_team or resolved.
mean_secondsnumberrequiredAverage time tickets spent in this state, in seconds.
Format: double
median_secondsnumberrequiredMedian time tickets spent in this state, in seconds.
Format: double
p90_secondsnumberrequiredThe time 90% of tickets stayed within in this state, in seconds.
Format: double
state_idstringrequiredId of the ticket state, such as tkts_....
state_namestringrequiredThe state's name as the team sees it.
ticketsintegerrequiredHow many tickets of this type were in this state.
Format: int64
type_idstringrequiredId of the ticket type, such as tktt_....
type_namestringrequiredThe ticket type's name.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.