doTransition method
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:
- Browse projects and Transition issues project permission for the project that the issue is in.
- If issue-level security is configured, issue-level security permission to view the issue.
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(),
);
}