doTransition method

Future doTransition({
  1. required String issueIdOrKey,
  2. required IssueUpdateDetails body,
})

Performs an issue transition and, if the transition has a screen, updates the fields from the transition screen.

sortByCategory To update the fields on the transition screen, specify the fields in the fields or update parameters in the request body. Get details about the fields using Get transitions with the transitions.fields expand.

This operation can be accessed anonymously.

Permissions required:

Implementation

Future<dynamic> doTransition(
    {required String issueIdOrKey, required IssueUpdateDetails body}) async {
  return await _client.send(
    'post',
    'rest/api/3/issue/{issueIdOrKey}/transitions',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    body: body.toJson(),
  );
}