GET api/Tickets/GetTicketStatistics/{id}?ticketStatisticsType={ticketStatisticsType}&useWorkingHours={useWorkingHours}

Returns ticket's area and state statistics

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Ticket Id (number)

integer

Required

ticketStatisticsType

TicketStatisticsTypeEnum

Default value is Mix

useWorkingHours

Use selected calendar based on opening hours on request service?

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

GetTicketStatisticsResult
NameDescriptionTypeAdditional information
TicketStatisticsRows

Collection of TicketStatisticsRow

None.

Response Formats

application/json, text/json

Sample:
{
  "TicketStatisticsRows": [
    {
      "ServiceId": 1,
      "ServiceName": "sample string 1",
      "State": "sample string 2",
      "TicketState": 101,
      "CustomWorkflowStateGuid": "309e491d-4efc-4010-8512-01d1544b5edb",
      "Minutes": 3.1
    },
    {
      "ServiceId": 1,
      "ServiceName": "sample string 1",
      "State": "sample string 2",
      "TicketState": 101,
      "CustomWorkflowStateGuid": "309e491d-4efc-4010-8512-01d1544b5edb",
      "Minutes": 3.1
    }
  ]
}

application/xml, text/xml

Sample:
<GetTicketStatisticsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results.Ticket">
  <TicketStatisticsRows>
    <TicketStatisticsRow>
      <CustomWorkflowStateGuid>309e491d-4efc-4010-8512-01d1544b5edb</CustomWorkflowStateGuid>
      <Minutes>3.1</Minutes>
      <ServiceId>1</ServiceId>
      <ServiceName>sample string 1</ServiceName>
      <State>sample string 2</State>
      <TicketState>TicketInQueue</TicketState>
    </TicketStatisticsRow>
    <TicketStatisticsRow>
      <CustomWorkflowStateGuid>309e491d-4efc-4010-8512-01d1544b5edb</CustomWorkflowStateGuid>
      <Minutes>3.1</Minutes>
      <ServiceId>1</ServiceId>
      <ServiceName>sample string 1</ServiceName>
      <State>sample string 2</State>
      <TicketState>TicketInQueue</TicketState>
    </TicketStatisticsRow>
  </TicketStatisticsRows>
</GetTicketStatisticsResult>