deleteComment method

Future<void> deleteComment({
  1. required String issueIdOrKey,
  2. required String id,
})

Deletes a comment.

Permissions required:

  • Browse projects project permission for the project that the issue containing the comment is in.
  • If issue-level security is configured, issue-level security permission to view the issue.
  • Delete all comments project permission to delete any comment or Delete own comments to delete comment created by the user,
  • If the comment has visibility restrictions, the user belongs to the group or has the role visibility is restricted to.

Implementation

Future<void> deleteComment(
    {required String issueIdOrKey, required String id}) async {
  await _client.send(
    'delete',
    'rest/api/3/issue/{issueIdOrKey}/comment/{id}',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
      'id': id,
    },
  );
}