readWorkflows method
Returns a list of workflows and related statuses by providing workflow names, workflow IDs, or project and issue types.
Permissions required:
- Administer Jira project permission to access all, including global-scoped, workflows
- At least one of the Administer projects and View (read-only) workflow project permissions to access project-scoped workflows
Implementation
Future<WorkflowReadResponse> readWorkflows(
{String? expand, required WorkflowReadRequest body}) async {
return WorkflowReadResponse.fromJson(await _client.send(
'post',
'rest/api/3/workflows',
queryParameters: {
if (expand != null) 'expand': expand,
},
body: body.toJson(),
));
}