updateDefaultWorkflow method

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

Sets the default workflow for a workflow scheme.

Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request object and a draft workflow scheme is created or updated with the new default workflow. The draft workflow scheme can be published in Jira.

Permissions required: Administer Jira global permission.

Implementation

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