getCustomerRequestStatus method

Future<PagedDTOCustomerRequestStatusDTO> getCustomerRequestStatus({
  1. required String issueIdOrKey,
  2. int? start,
  3. int? limit,
})

This method returns a list of all the statuses a customer Request has achieved. A status represents the state of an issue in its workflow. An issue can have one active status only. The list returns the status history in chronological order, most recent (current) status first.

Permissions required: Permission to view the customer request.

Implementation

Future<PagedDTOCustomerRequestStatusDTO> getCustomerRequestStatus(
    {required String issueIdOrKey, int? start, int? limit}) async {
  return PagedDTOCustomerRequestStatusDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/request/{issueIdOrKey}/status',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}