deleteWorkflowMapping method

Future<void> deleteWorkflowMapping({
  1. required int id,
  2. required String workflowName,
  3. bool? updateDraftIfNeeded,
})

Deletes the workflow-issue type mapping for a workflow in a workflow scheme.

Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the workflow-issue type mapping deleted. The draft workflow scheme can be published in Jira.

Permissions required: Administer Jira global permission.

Implementation

Future<void> deleteWorkflowMapping(
    {required int id,
    required String workflowName,
    bool? updateDraftIfNeeded}) async {
  await _client.send(
    'delete',
    'rest/api/3/workflowscheme/{id}/workflow',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      'workflowName': workflowName,
      if (updateDraftIfNeeded != null)
        'updateDraftIfNeeded': '$updateDraftIfNeeded',
    },
  );
}