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 to comment on. Example: PROJ-123.
BodyRequiredComment text. Plain text, supports newlines (\n). Supports expression interpolation. Maximum length follows Jira's comment size limit (approximately 32KB). Comments appear in the issue activity stream attributed to the API token's user account.

Sample Configuration

Post a deployment confirmation comment after a successful CI/CD deployment:

{
  "resource": "comment",
  "operation": "add",
  "Host": "https://acmecorp.atlassian.net",
  "Email": "automation@acmecorp.com",
  "ApiToken": "{{ $credentials.jiraApiToken }}",
  "IssueKey": "{{ $json.jiraIssueKey }}",
  "Body": "*DEPLOYMENT CONFIRMED — {{ $now | date('YYYY-MM-DD HH:mm') }} UTC*\n\nEnvironment: {{ $json.environment }}\nVersion: {{ $json.version }}\nBuild: {{ $json.buildNumber }}\nDeployed By: {{ $json.deployedBy }}\nBuild URL: {{ $json.buildUrl }}\n\nAll health checks passing. Issue is live in {{ $json.environment }}.\n\n_Posted by BizFirst automation_"
}

Validation Errors

Error CodeCause
VAL_MISSING_ISSUE_KEYIssueKey is empty or null.
VAL_MISSING_BODYBody is empty or null.
ISSUE_NOT_FOUNDNo issue exists with the given key, or the user lacks access.
AUTH_FAILEDInvalid credentials or expired API token.

Output Fields

FieldTypeDescription
statusstring"success" or "error"
commentIdstringInternal Jira comment ID. Store this if you need to update or delete the comment later. Example: "10281"
issueKeystringKey of the issue the comment was added to.
resourcestringAlways "comment"
operationstringAlways "add"

Sample Output

{
  "status": "success",
  "commentId": "10281",
  "issueKey": "PROJ-123",
  "resource": "comment",
  "operation": "add"
}

Expression Reference

ExpressionTypeExample ValueUse
{{ $output.addComment.commentId }}string"10281"Store for later update/delete operations
{{ $output.addComment.issueKey }}string"PROJ-123"Confirm the comment landed on the correct issue
{{ $output.addComment.status }}string"success"Gate post-comment notifications

Node Policies & GuardRails

Workflow Examples

Example 1 — Post Deployment Comment

// Triggered by GitHub Actions post-deploy webhook
{
  "resource": "comment",
  "operation": "add",
  "IssueKey": "{{ $json.jiraKey }}",
  "Body": "*DEPLOYED to {{ $json.env }}* — {{ $now }}\nVersion: {{ $json.version }}\nBuild: #{{ $json.buildId }}\nStatus: All health checks green\n\nRelease notes: {{ $json.releaseNotesUrl }}"
}

Example 2 — Automated Incident Timeline Update

// Alert system fires status update
{
  "resource": "comment",
  "operation": "add",
  "IssueKey": "{{ $json.incidentKey }}",
  "Body": "*{{ $now | date('HH:mm') }} UTC — Automated Status Update*\n\n{{ $json.updateMessage }}\n\nError rate: {{ $json.errorRate }}%\nAffected users: {{ $json.affectedCount }}\nNext review: {{ $json.nextReviewTime }}"
}