createWorkflowSchemeDraftFromParent method

Future<WorkflowScheme> createWorkflowSchemeDraftFromParent(
  1. int id
)

Create a draft workflow scheme from an active workflow scheme, by copying the active workflow scheme. Note that an active workflow scheme can only have one draft workflow scheme.

Permissions required: Administer Jira global permission.

Implementation

Future<WorkflowScheme> createWorkflowSchemeDraftFromParent(int id) async {
  return WorkflowScheme.fromJson(await _client.send(
    'post',
    'rest/api/3/workflowscheme/{id}/createdraft',
    pathParameters: {
      'id': '$id',
    },
  ));
}