Skip to content
dimmiDocs

Reports and data

Report time in state

GET/api/v1/reports/tickets/time-in-state

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the tickets:read ability

Query parameters

fromstring

First day, 2006-01-02. Defaults to 30 days ago.

tostring

Last day included, 2006-01-02. Defaults to today.

Response 200

OK
dataobject[] | nullrequired

The items, as a list; empty when there are none.

Show child attributes
groupstringrequired

The state's fixed group: submitted, in_progress, waiting_customer, waiting_team or resolved.

mean_secondsnumberrequired

Average time tickets spent in this state, in seconds.

Format: double

median_secondsnumberrequired

Median time tickets spent in this state, in seconds.

Format: double

p90_secondsnumberrequired

The time 90% of tickets stayed within in this state, in seconds.

Format: double

state_idstringrequired

Id of the ticket state, such as tkts_....

state_namestringrequired

The state's name as the team sees it.

ticketsintegerrequired

How many tickets of this type were in this state.

Format: int64

type_idstringrequired

Id of the ticket type, such as tktt_....

type_namestringrequired

The ticket type's name.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.