FlowmageDocs

Upload attachment

BetaChanges data

Attaches a file to a Jira issue.

Settings

SettingWhat it is
ConnectionRequiredThe Jira connection the step signs in with.
Issue keyRequiredtext
File nameRequiredThe file's name, extension included. Pick the file, then paste its base64 below.
File contentsRequiredBase64 of the file — {{ file("report.pdf").base64 }}. The largest file Jira accepts is a setting of your Jira site, which a Jira admin changes.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `jira`)
issuetext
nametexta file name, listed in `requires.files`
contentBase64textits `{{ }}` must give a string

Output

FieldType
attachmentsAttachments Jira storedarray
attachmentIdstring
attachmentUrlLink to the attachmentstring
Sample output, and the expression for each field
  • attachmentId"20001"
  • attachmentUrl"https://acme.atlassian.net/secure/attachment/20001/report.pdf"
  • attachments[]

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "contentBase64": "<file contents>",
    "issue": "<issue key>",
    "name": "<file name>"
  },
  "label": "Upload attachment",
  "type": "jira.uploadAttachment",
  "version": 1
}