getQueue method

Future<QueueDTO> getQueue({
  1. required String serviceDeskId,
  2. required int queueId,
  3. bool? includeCount,
})

This method returns a specific queues in a service desk. To include a customer request count for the queue (in the issueCount field) in the response, set the query parameter includeCount to true (its default is false).

Permissions required: service desk's Agent.

Implementation

Future<QueueDTO> getQueue(
    {required String serviceDeskId,
    required int queueId,
    bool? includeCount}) async {
  return QueueDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/queue/{queueId}',
    pathParameters: {
      'serviceDeskId': serviceDeskId,
      'queueId': '$queueId',
    },
    queryParameters: {
      if (includeCount != null) 'includeCount': '$includeCount',
    },
  ));
}