deleteIssue method

Future<void> deleteIssue({
  1. required String issueIdOrKey,
  2. String? deleteSubtasks,
})

Deletes an issue.

An issue cannot be deleted if it has one or more subtasks. To delete an issue with subtasks, set deleteSubtasks. This causes the issue's subtasks to be deleted with the issue.

This operation can be accessed anonymously.

Permissions required:

Implementation

Future<void> deleteIssue(
    {required String issueIdOrKey, String? deleteSubtasks}) async {
  await _client.send(
    'delete',
    'rest/api/3/issue/{issueIdOrKey}',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (deleteSubtasks != null) 'deleteSubtasks': deleteSubtasks,
    },
  );
}