Portal Community

When to Use

Configuration

Connection

FieldRequiredDescription
HostRequiredJira instance base URL. Example: https://acmecorp.atlassian.net
EmailRequiredAtlassian account email. Example: automation@acmecorp.com
ApiTokenRequiredAPI token from Atlassian security settings. Store in Credentials Manager.

Operation Fields

FieldRequiredDescription
IssueKeyRequiredThe key of the issue containing the comment. Example: PROJ-123.
CommentIdRequiredThe numeric ID of the comment to delete. Example: "10281". Deletion is permanent and irreversible.
Prefer update over delete for corrections: If you need to correct a comment's content, use comment/update instead of deleting and recreating. Deletion removes the activity stream entry, which can create gaps in audit trails. Only delete when removal is explicitly required (e.g. GDPR erasure, accidental secret exposure).

Sample Configuration

{
  "resource": "comment",
  "operation": "remove",
  "Host": "https://acmecorp.atlassian.net",
  "Email": "automation@acmecorp.com",
  "ApiToken": "{{ $credentials.jiraApiToken }}",
  "IssueKey": "{{ $json.issueKey }}",
  "CommentId": "{{ $json.errorCommentId }}"
}

Validation Errors

Error CodeCause
VAL_MISSING_ISSUE_KEYIssueKey is empty or null.
VAL_MISSING_COMMENT_IDCommentId is empty or null.
COMMENT_NOT_FOUNDNo comment exists with the given ID on this issue.
PERMISSION_DENIEDThe API token user is not the comment's author and does not have admin permission to delete others' comments.
AUTH_FAILEDInvalid credentials or expired API token.

Output Fields

FieldTypeDescription
statusstring"success" or "error"
commentIdstringID of the deleted comment.
deletedbooleantrue if the comment was successfully deleted.
resourcestringAlways "comment"
operationstringAlways "remove"

Sample Output

{
  "status": "success",
  "commentId": "10281",
  "deleted": true,
  "resource": "comment",
  "operation": "remove"
}

Expression Reference

ExpressionTypeExample ValueUse
{{ $output.removeComment.deleted }}booleantrueConfirm deletion before logging
{{ $output.removeComment.commentId }}string"10281"Record deleted comment ID in audit log

Node Policies & GuardRails

Workflow Example — Sensitive Data Remediation

// Step 1: Security scanner detects comment with exposed credentials
// Step 2: comment/get — read comment content for archival
// Step 3: MongoDB/insert — archive redacted evidence
// Step 4: comment/remove — delete the sensitive comment
{
  "resource": "comment",
  "operation": "remove",
  "IssueKey": "{{ $json.issueKey }}",
  "CommentId": "{{ $json.sensitiveCommentId }}"
}
// Step 5: comment/add — post replacement comment
{
  "IssueKey": "{{ $json.issueKey }}",
  "Body": "SECURITY NOTICE: A comment containing sensitive information was automatically removed at {{ $now }}. Please do not post credentials or secrets in Jira comments. Contact security@acmecorp.com if you have questions."
}
// Step 6: Slack/postMessage — alert security team