getCustomerTransitions method

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

This method returns a list of transitions, the workflow processes that moves a customer request from one status to another, that the user can perform on a request. Use this method to provide a user with a list if the actions they can take on a customer request.

Permissions required: Permission to view the customer request.

Implementation

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