updateWorkflows method

Future<WorkflowUpdateResponse> updateWorkflows({
  1. String? expand,
  2. required WorkflowUpdateRequest body,
})

Update workflows and related statuses.

Permissions required:

  • Administer Jira project permission to create all, including global-scoped, workflows
  • Administer projects project permissions to create project-scoped workflows

Implementation

Future<WorkflowUpdateResponse> updateWorkflows(
    {String? expand, required WorkflowUpdateRequest body}) async {
  return WorkflowUpdateResponse.fromJson(await _client.send(
    'post',
    'rest/api/3/workflows/update',
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
    body: body.toJson(),
  ));
}