I need to 'hide' individual attachments from being displayed when using the Attachments macro, by placing a LABEL on each attachment that I don't want displayed.
Does the Attachments macro support this capability (such as using a '-' in front of the label's name to exclude that attachment from being displayed)?
Is there an alternate means to do this, other than Labels?
Hello there, @Hal West !
We can actually to the direct opposite of what you described. We can set the Attachments Macro to display only the attachments that contain a specific label.
Here is how:
- Create a new page
- Insert the Attachments Macro
- Go into the macro settings
- Scroll the fields in the left side until you can see “Attachment labels”
- There, we will need to define all the labels that can be shown
- Save the settings
- Publish page
- Go to to the page attachments (three dots menu in the top right corner > Attachments)
- Define the same label that you defined within the macro to all the attachments you need to display
- Go back to the page view
- Check that your attachments are now displaying
The objective of hiding specific attachments can be achieved. However, instead of defining which labels can not be shown, we select those that can be shown.
Hopes this helps you, Hal!
Thanks for your answer. It seems to describe standard and well-known functionality of the Attachments macro. However, your answer does not meet our need.
In our case, multiple parties will be attaching files to multiple pages 'without applying labels', and these files will be made visible on a single page containing the Attachments macro. As leadership approves each attached file, they will apply a 'reviewed' label to the file and they want that file to 'drop off' of the list of files shown by the Attachments macro (though each file itself remains attached to its original page).
Can the Attachments macro be made to 'remove' files from visibility which have certain labels? If not, can Atlassian update the macro with this capability? (we would want that!)
Hello there again @Hal West !
Thank you very much for explaining further. Now I believe that I completely understand your needs.
What we need is to display solely attachments that have no labels, correct? Currently, this is not possible with the Attachments macro.
This improvement has been listed here, for both Confluence Server and Cloud:
Since there is no preview of when or if this will be implemented, the best course of action is to vote and watch the report.
The possibility of filtering out specific labels has also been suggested a few years ago but was ultimately ruled out by Atlassian. You can check the request here:
Again, thanks for keeping the thread alive.
Thanks for the update. I realize this is a 'feature request' - but a good one.
I'm generally unhappy with Atlassian's lack of promptness to address certain 'bugs' and 'issues' in their tools, allowing them to exist for years, even if there haven't been hundreds of complaints. But this is a feature, not an issue.
I hope this feature request can be implemented soon, as it's a real need, sensible and logical, and the original creator of the Attachments macro probably should have included the capability to 'display' or to 'not display' attachments with any listed labels.
Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events