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
AttachmentIdRequiredThe numeric Jira attachment ID to retrieve metadata for. Obtained from a prior attachment/add response or from attachment/getAll. Example: "10044".
Metadata only — not file content: This operation returns attachment metadata (name, size, MIME type, timestamps). It does not download the file binary. To download file content, use the content URL from the Jira API response in an HttpRequest node with Basic Auth headers matching your Jira credentials.

Sample Configuration

{
  "resource": "attachment",
  "operation": "get",
  "Host": "https://acmecorp.atlassian.net",
  "Email": "automation@acmecorp.com",
  "ApiToken": "{{ $credentials.jiraApiToken }}",
  "AttachmentId": "{{ $json.attachmentId }}"
}

Validation Errors

Error CodeCause
VAL_MISSING_ATTACHMENT_IDAttachmentId is empty or null.
ATTACHMENT_NOT_FOUNDNo attachment exists with the given ID, or the user lacks access to the issue it belongs to.
AUTH_FAILEDInvalid credentials or expired API token.

Output Fields

FieldTypeDescription
statusstring"success" or "error"
attachmentIdstringJira attachment ID.
fileNamestringFile name as stored in Jira.
fileSizeintegerFile size in bytes.
mimeTypestringMIME type of the file. Example: "text/plain", "application/pdf", "image/png".
createdstringISO 8601 timestamp of when the attachment was uploaded.
authorstringDisplay name of the user who uploaded the file.
resourcestringAlways "attachment"
operationstringAlways "get"

Sample Output

{
  "status": "success",
  "attachmentId": "10044",
  "fileName": "incident-OPS-347-logs-2026-05-26-1430.txt",
  "fileSize": 48312,
  "mimeType": "text/plain",
  "created": "2026-05-26T14:30:08.000Z",
  "author": "BizFirst Automation",
  "resource": "attachment",
  "operation": "get"
}

Expression Reference

ExpressionTypeExample ValueUse
{{ $output.getAttachment.fileName }}stringFile nameConfirm correct file before deletion
{{ $output.getAttachment.fileSize }}integer48312Storage audit and size threshold checks
{{ $output.getAttachment.mimeType }}string"text/plain"Validate file type before archiving
{{ $output.getAttachment.author }}string"BizFirst Automation"Verify upload provenance
{{ $output.getAttachment.created }}stringISO timestampAge-based archival decisions

Node Policies & GuardRails

Workflow Example — Verify Before Delete

// Step 1: attachment/get — verify ID and filename match expected
{
  "resource": "attachment",
  "operation": "get",
  "AttachmentId": "{{ $json.attachmentId }}"
}
// Step 2: IfCondition — filename matches pattern and author is automation account
// Condition: {{ $output.getAttachment.fileName }}.includes("test-run") AND {{ $output.getAttachment.author }} === "BizFirst Automation"
// Step 3 (if safe): attachment/remove
{
  "resource": "attachment",
  "operation": "remove",
  "AttachmentId": "{{ $json.attachmentId }}"
}