confluence attachments auto label

Is it possible to auto label documents that are uploaded via the attachment macro that is filtering by label?

5 answers

It is possible with the attachment macro, but only when you use the browse option. In the macro settings you define the labels you want to filter by, and allow upload. Note that the labels have to exist already. When you upload files they automatically get the labels.
There are open issues on the drag and drop feature:

https://jira.atlassian.com/browse/CONF-33902

https://jira.atlassian.com/browse/CONF-37724

I was hoping to find a solution here. We want to use macro's like content by label, recently updated, livesearch to find content, but can't really use those because not all content is found when users drag and drop files. So hopefully this will get fixed soon! Please vote for the issues!

(We are using Confluence Server 5.7)

@Thom Were you able to get a solution to your problem because I have similar  task?

Hi Ian,

Unfortunately not when you use drag & drop, only when you manually browse and upload your file. But this issue seems to be fixed for Confluence Cloud and might also get a fix for Confluence Server (see https://jira.atlassian.com/browse/CONFCLOUD-53570).

I agree. I was hoping I just missed a check box somewhere :-(

Auto Labeling would be pretty cool -> An easy Option like "Use same Labels as Parent Page" or similiar would be great

I do not think this is possible with standard macro, but you can develop your custom listener (https://developer.atlassian.com/display/CONFDEV/Event+Listener+Module) and catch for https://docs.atlassian.com/confluence/latest/com/atlassian/confluence/event/events/content/attachment/AttachmentCreateEvent.html events (and label attachments as you need)

0 vote
Davin Studer Community Champion Jan 28, 2015

That would be a pretty slick feature if it did that.

I am using not the "attachements" macro and adding labels there. If uploading via "browse for files", it attaches those labels :-)

image.pngimage.png

@Eric Brahmann I got it working with confiforms with the help of @Alex Medved [ConfiForms]

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

274 views 11 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