createWorkflows method

Future<WorkflowCreateResponse> createWorkflows({
  1. required WorkflowCreateRequest body,
})

Create 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<WorkflowCreateResponse> createWorkflows(
    {required WorkflowCreateRequest body}) async {
  return WorkflowCreateResponse.fromJson(await _client.send(
    'post',
    'rest/api/3/workflows/create',
    body: body.toJson(),
  ));
}