deleteIssue method
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:
- Browse projects and Delete issues project permission for the project containing the issue.
- If issue-level security is configured, issue-level security permission to view the issue.
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,
},
);
}