getWorkflowSchemeDraft method
Returns the draft workflow scheme for an active workflow scheme. Draft workflow schemes allow changes to be made to the active workflow schemes: When an active workflow scheme is updated, a draft copy is created. The draft is modified, then the changes in the draft are copied back to the active workflow scheme. See Configuring workflow schemes for more information. Note that:
- Only active workflow schemes can have draft workflow schemes.
- An active workflow scheme can only have one draft workflow scheme.
Permissions required: Administer Jira global permission.
Implementation
Future<WorkflowScheme> getWorkflowSchemeDraft(int id) async {
return WorkflowScheme.fromJson(await _client.send(
'get',
'rest/api/3/workflowscheme/{id}/draft',
pathParameters: {
'id': '$id',
},
));
}