deleteIssueType method

Future<void> deleteIssueType({
  1. required String id,
  2. String? alternativeIssueTypeId,
})

Deletes the issue type. If the issue type is in use, all uses are updated with the alternative issue type (alternativeIssueTypeId). A list of alternative issue types are obtained from the Get alternative issue types resource.

Permissions required: Administer Jira global permission.

Implementation

Future<void> deleteIssueType(
    {required String id, String? alternativeIssueTypeId}) async {
  await _client.send(
    'delete',
    'rest/api/3/issuetype/{id}',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (alternativeIssueTypeId != null)
        'alternativeIssueTypeId': alternativeIssueTypeId,
    },
  );
}