getServiceDesks method

Future<PagedDTOServiceDeskDTO> getServiceDesks({
  1. int? start,
  2. int? limit,
})

This method returns all the service desks in the Jira Service Management instance that the user has permission to access. Use this method where you need a list of service desks or need to locate a service desk by name or keyword.

Note: This method will be slow if the instance has hundreds of service desks. If you want to fetch a single service desk by its ID, use /rest/servicedeskapi/servicedesk/{serviceDeskId} instead.

Permissions required: Any

Implementation

Future<PagedDTOServiceDeskDTO> getServiceDesks(
    {int? start, int? limit}) async {
  return PagedDTOServiceDeskDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/servicedesk',
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}