assignSchemeToProject method

Future assignSchemeToProject({
  1. required WorkflowSchemeProjectAssociation body,
})

Assigns a workflow scheme to a project. This operation is performed only when there are no issues in the project.

Workflow schemes can only be assigned to classic projects.

Permissions required: Administer Jira global permission.

Implementation

Future<dynamic> assignSchemeToProject(
    {required WorkflowSchemeProjectAssociation body}) async {
  return await _client.send(
    'put',
    'rest/api/3/workflowscheme/project',
    body: body.toJson(),
  );
}