deleteWorkflowMapping method
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',
},
);
}