Jira Data Center icon

Jira Data Center

Interact with Jira Data Center API

Actions16

Comment → Delete

AI-generated

Overview

This node interacts with the Jira Data Center API to manage comments on Jira issues. Specifically, the "Delete Comment" operation allows users to delete a comment from a specified issue by providing the issue key and the comment ID. This is useful in scenarios where outdated or incorrect comments need to be removed from an issue's discussion thread.

Practical examples include:

  • Automatically cleaning up comments after a certain workflow step.
  • Removing sensitive information mistakenly added as a comment.
  • Managing comments programmatically during issue lifecycle automation.

Properties

Name Meaning
Authentication Method of authentication: "Personal Access Token" or "Basic Auth".
Issue Key The key of the Jira issue (e.g., PROJ-123) from which the comment will be deleted.
Comment ID The unique identifier of the comment to delete from the specified issue.

Output

The output JSON contains a simple success confirmation object when a comment is successfully deleted:

{
  "success": true
}

No binary data is produced by this operation.

Dependencies

  • Requires access to a Jira Data Center instance.
  • Needs either a Personal Access Token or Basic Authentication credentials configured in n8n for Jira Data Center API access.
  • The node uses the Jira REST API endpoint /rest/api/2/issue/{issueKey}/comment/{commentId} with the HTTP DELETE method.

Troubleshooting

  • Common Issues:

    • Invalid or missing Issue Key or Comment ID parameters will cause the operation to fail.
    • Insufficient permissions for the authenticated user to delete comments on the issue.
    • Network connectivity or incorrect Jira server URL configuration.
  • Error Messages:

    • "Jira Data Center API request failed: <error message>": Indicates an issue with the API call, such as authentication failure, invalid parameters, or permission errors.
  • Resolutions:

    • Verify that the Issue Key and Comment ID are correct and exist in Jira.
    • Ensure the API credentials have sufficient permissions to delete comments.
    • Check the Jira server URL and network connectivity.
    • Review Jira audit logs or API response details for more specific error causes.

Links and References

Discussion