Forums

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

How do I filter with the attachment maacro using a label?

Terry August 1, 2018

I am loading a number of documents which I will assign different labels (e.g. Minutes, Agendas, Plans, Requirements).  I want to create a page that I can then put mutliple Attachemnt Macro and have each display only the documents that correspond to the label I assign a document.

So in the Minute Attachemnts only documents labeled "Minutes" will show, and so forth.

I have edited the file property to add the appropriate label but my pilot document is only showing in the attachment with No label assigned even though it show a label of Minutes.

Is this even possible in Confluence? If so How?  Longing for my metadata in SharePoint!

1 answer

1 accepted

0 votes
Answer accepted
Fabienne Gerhard
Community Champion
August 1, 2018

Hi @Terry - are the attachments you will show part of the same page where you put the macro in? If not - you have to put the page title in page field where system can find the labeled attachments

 

grafik.png

Terry August 2, 2018

Fabienne,

After I load the Attachment Macro and publish the page section I then drag and drop the document to the space provided.  I then add the label to the document.  I am new to JIRA and Confluence so I maybe asking for them to do things that they are not designed to do.  Just not able to find instructions in doing what I am desiring to do in the tools.

Fabienne Gerhard
Community Champion
August 2, 2018

Hi  @Terry - did you put labels to the attachments?

You have to name the labels in the label field when editing attachment macro

grafik.png

Like John Rybak likes this
Fabienne Gerhard
Community Champion
August 2, 2018

Your attachment site would look like this

grafik.png

Like Jodi O'Brien likes this
Fabienne Gerhard
Community Champion
August 2, 2018

and on the site it would look like this with 3 attachment macros sorted by different labels

Edit mode:

grafik.png

Published:

grafik.png

Terry August 2, 2018

Fabienne,

I have done those steps and it does not work.

I load and define the Attachment Macro.

2018-08-02_Attachment control.png

 

2018-08-02_Minutes_Page_Showing_Attachment_Control.png

I then Publish the page.

2018-08-02_Minutes_Page_After_publishing.png

Today I cannot load a document at all. Yesterday when I loaded the file would show up in each box no matter which I loaded it into.  I added the label to the document after loading it to the section. 

I noticed that you have "display" coded. Is that necessary?

 

I also notice that there is a similar thread out there

https://community.atlassian.com/t5/Jira-questions/Just-show-some-labels-in-filter-results/qaq-p/748021

Fabienne Gerhard
Community Champion
August 2, 2018

Did you tag the attachments with the labels on your attachment site? System can only sort by the defined label of your macro if it can find the labeled attachment on the definded site.

You should also see the labeled attachments (my 2nd pic on the previous post) when editing the macro and click on preview.

grafik.png

Terry August 2, 2018

Yes, I have the document labeled. 2018-08-02_Attachment_List.png

Fabienne Gerhard
Community Champion
August 2, 2018

Hmm, that's weird - your Screenshot shows that it's on the same page, label is the same...

Last thing I can imagine - you sorted by AOCT in the macro, all in uppercases - but label is in lower case letters. I've tried that and this did'nt work. Try using lower case letters - aoct.

Hope this helps!

Terry August 3, 2018

Fabienne,

 

That toke care of the issue. The document now only shows up in the right list.

2018-08-03_Minutes_Page_After_publishing.png

Fabienne Gerhard
Community Champion
August 5, 2018

Great - hope that solved the whole problem!

Terry August 6, 2018

Fabienne,

Yes, everything is good now.

Thanks again for hanging in there with me on this.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events