Is There A Way To Show PAGE Attachments?

Problem: I want a way to show all of the attachments on a Confluence page then provide a way for end users to filter them by their associated label.

Thoughts: The Space Attachments macro is ALMOST exactly what I need but I want to restrict it to files on the PAGE only NOT the entire Space.  Even being able to presort the attachments with a given macro or extension type would solve my issue but this does not appear to be possible using the Space Attachments macro.

Another idea is to use the label display but again it works for the entire space not a single page.  

Any thoughts?

4 answers

2 votes
Ann Worley Atlassian Team Oct 26, 2017

Welcome to the online Atlassian Community.

The Attachments macro  displays a list of files attached to a page.

I hope it works for your case, if not, let us know how we may help.

The Attachments macro does not answer the second part of the question.  There is not a way to filter by the label.  I added a search macro but I had to do a bunch of tricks with it to get even close and it is kinda cludgey.  For example, each file has to have a label called "file" so I can properly search for it.


I went with the attachments macro and a search box but it is not wonderful...  :(

0 votes
Ann Worley Atlassian Team Oct 30, 2017

It looks like I misunderstood, John, I had the idea you could use the attachments macro to filter by labels, when I edit the macro, I see the Attachment label option, which says "A comma-separated list of labels to filter by."

Screen Shot 2017-10-30 at 11.30.10 AM.pngOur docs also led me to believe you could filter by label:

 Attachments Macro

Attachment Labels
A list of labels, used to filter the attachments to display....



I want it real time like the Space Attachments table OR a static chart of label values like that other macro...but all of these are Space level only.

In general enhance:

# Every macro that has an option for spaces only should be enhanced to use pages and their subs as an option.

# Add label filtering to the Attachments macro just like the Space Attachments macro.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

212 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you