updateDraftWorkflowMapping method

Future<WorkflowScheme> updateDraftWorkflowMapping({
  1. required int id,
  2. required String workflowName,
  3. required IssueTypesWorkflowMapping body,
})

Sets the issue types for a workflow in a workflow scheme's draft. The workflow can also be set as the default workflow for the draft workflow scheme. Unmapped issues types are mapped to the default workflow.

Permissions required: Administer Jira global permission.

Implementation

Future<WorkflowScheme> updateDraftWorkflowMapping(
    {required int id,
    required String workflowName,
    required IssueTypesWorkflowMapping body}) async {
  return WorkflowScheme.fromJson(await _client.send(
    'put',
    'rest/api/3/workflowscheme/{id}/draft/workflow',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      'workflowName': workflowName,
    },
    body: body.toJson(),
  ));
}