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 vote
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....

 

A

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.

:D

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

385 views 21 10
Join discussion

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