The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use Attachment Macro to include one label but exclude another

Dean Robinson
June 18, 2020

Hi,

I am trying to get a filtered list of attachments on a page using the Attachment Macro. I would like to have the macro show attachments that have "labela" AND NOT a label of "summary".

Is there a way to achieve this?  I was trying with    labela, -summary    in the label criteria but this does not seem to work.

The other option I considered was specifying labela in the label criteria of the attachment macro, then then excluding files that have a filename pattern that include "Summary" in the filename. However, I also seem to have difficulty working out what the filename matching pattern would be to exclude files with the text "Summary" in the filename somewhere.

Any help appreciated.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events