getIssuesInQueue method

Future<PagedDTOIssueBean> getIssuesInQueue({
  1. required String serviceDeskId,
  2. required int queueId,
  3. int? start,
  4. int? limit,
})

This method returns the customer requests in a queue. Only fields that the queue is configured to show are returned. For example, if a queue is configured to show description and due date, then only those two fields are returned for each customer request in the queue.

Permissions required: Service desk's agent.

Implementation

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