getAllWorkflows method
Returns all workflows in Jira or a workflow. Deprecated, use Get workflows paginated.
If the workflowName
parameter is specified, the workflow is returned as
an object (not in an array). Otherwise, an array of workflow objects is
returned.
Permissions required: Administer Jira global permission.
Implementation
@deprecated
Future<List<DeprecatedWorkflow>> getAllWorkflows(
{String? workflowName}) async {
return (await _client.send(
'get',
'rest/api/3/workflow',
queryParameters: {
if (workflowName != null) 'workflowName': workflowName,
},
) as List<Object?>)
.map((i) =>
DeprecatedWorkflow.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}