updateDraftDefaultWorkflow method
Future<WorkflowScheme>
updateDraftDefaultWorkflow({
- required int id,
- required DefaultWorkflow body,
Sets the default workflow for a workflow scheme's draft.
Permissions required: Administer Jira global permission.
Implementation
Future<WorkflowScheme> updateDraftDefaultWorkflow(
{required int id, required DefaultWorkflow body}) async {
return WorkflowScheme.fromJson(await _client.send(
'put',
'rest/api/3/workflowscheme/{id}/draft/default',
pathParameters: {
'id': '$id',
},
body: body.toJson(),
));
}