deleteWorkflowSchemeIssueType method

Future<WorkflowScheme> deleteWorkflowSchemeIssueType({
  1. required int id,
  2. required String issueType,
  3. bool? updateDraftIfNeeded,
})

Deletes the issue type-workflow mapping for an issue type 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 issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.

Permissions required: Administer Jira global permission.

Implementation

Future<WorkflowScheme> deleteWorkflowSchemeIssueType(
    {required int id,
    required String issueType,
    bool? updateDraftIfNeeded}) async {
  return WorkflowScheme.fromJson(await _client.send(
    'delete',
    'rest/api/3/workflowscheme/{id}/issuetype/{issueType}',
    pathParameters: {
      'id': '$id',
      'issueType': issueType,
    },
    queryParameters: {
      if (updateDraftIfNeeded != null)
        'updateDraftIfNeeded': '$updateDraftIfNeeded',
    },
  ));
}