Skip to content

Attachments Macro

The Attachments Macro displays the attachments of the connected Jira work item directly on the Confluence page. You can choose between a list or table layout and select which attachment fields to show.

The macro only displays the attachments — it does not copy them. The files remain in Jira, and no Confluence page attachments are created when the rule runs. As a result, the list always reflects the attachments currently present on the work item.


  • Layout — Choose between List or Table display.
  • Display Fields — Select which fields are shown for each attachment (see below).
  • Sort By — Select the order in which the attachments are listed (see below).
FieldShows
File NameThe name of the attached file, linked to the file in Jira.
SizeThe file size of the attachment, for example 1.05 MB.
TypeThe file type in readable form, for example PDF or Image.
UploadedThe date and time the attachment was added to the work item.
UploaderThe user who added the attachment.
PreviewA generic file icon in front of the entry, identical for all file types.
OptionOrders attachments by
Date (Newest First)Upload date, most recent first — default
Date (Oldest First)Upload date, oldest first
Name (A-Z)File name, ascending
Name (Z-A)File name, descending
Size (Largest First)File size, largest first
Size (Smallest First)File size, smallest first

If the connected work item has no attachments, the macro still renders: an empty table including its header row. It does not disappear from the page and does not report an error.

All attachments of the work item are displayed. There is no maximum number of entries, no pagination or truncation, and no exclusion by file size or file type.


The displayed file names are links to the attachment in Jira. Clicking an entry downloads the file.

Downloads are resolved with the individual user’s own Jira permissions. This is the key difference from the metadata: the attachment list itself ignores Jira project permissions, but the file behind it does not.

UserSees the attachment listCan download the file
No Jira product access (no licence)No — an error message is displayed insteadNo
Jira licence, but no access to the work itemYes, including all file namesNo
Jira licence with access to the work itemYesYes

Like all AutoPage macros, the Attachments Macro requires Jira product access: a Confluence user without a Jira licence does not see the attachment list. For licensed users, the macro does not evaluate Jira project or issue permissions, so the attachment list is rendered even if that user could not open the work item in Jira.


The Attachments Macro does not offer a Sync Mode setting. The attachment list is always retrieved live when the Confluence page is loaded, so it always reflects the current state of the work item. As with the “Live Update” mode of the other macros, no attachment data is displayed if communication with the Jira API fails.


Error message:

AutoPage - Attachments • RequestId: <request-id> Error: Runtime exited with error: exit status 7

This message is displayed in place of the attachment list for users without Jira product access. The macro cannot retrieve the attachments because the viewing user has no Jira licence.

Resolution: Assign Jira product access to the user, or restrict the Confluence page to users who have it. Note that the message is technical rather than descriptive — users reporting a “broken macro” with this text are usually missing a Jira licence.