updateWorkflowScheme method

Future<WorkflowScheme> updateWorkflowScheme({
  1. required int id,
  2. required WorkflowScheme body,
})

Updates a workflow scheme, including the name, default workflow, issue type to project mappings, and more. If the workflow scheme is active (that is, being used by at least one project), then a draft workflow scheme is created or updated instead, provided that updateDraftIfNeeded is set to true.

Permissions required: Administer Jira global permission.

Implementation

Future<WorkflowScheme> updateWorkflowScheme(
    {required int id, required WorkflowScheme body}) async {
  return WorkflowScheme.fromJson(await _client.send(
    'put',
    'rest/api/3/workflowscheme/{id}',
    pathParameters: {
      'id': '$id',
    },
    body: body.toJson(),
  ));
}