performCustomerTransition method

Future<void> performCustomerTransition({
  1. required String issueIdOrKey,
  2. required CustomerTransitionExecutionDTO body,
})

This method performs a customer transition for a given request and transition. An optional comment can be included to provide a reason for the transition.

Permissions required: The user must be able to view the request and have the Transition Issues permission. If a comment is passed the user must have the Add Comments permission.

Implementation

Future<void> performCustomerTransition(
    {required String issueIdOrKey,
    required CustomerTransitionExecutionDTO body}) async {
  await _client.send(
    'post',
    'rest/servicedeskapi/request/{issueIdOrKey}/transition',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    body: body.toJson(),
  );
}