updateWorkflowSchemeDraft method
Future<WorkflowScheme>
updateWorkflowSchemeDraft({
- required int id,
- required WorkflowScheme body,
Updates a draft workflow scheme. If a draft workflow scheme does not exist for the active workflow scheme, then a draft is created. Note that an active workflow scheme can only have one draft workflow scheme.
Permissions required: Administer Jira global permission.
Implementation
Future<WorkflowScheme> updateWorkflowSchemeDraft(
{required int id, required WorkflowScheme body}) async {
return WorkflowScheme.fromJson(await _client.send(
'put',
'rest/api/3/workflowscheme/{id}/draft',
pathParameters: {
'id': '$id',
},
body: body.toJson(),
));
}