Writing Macro to add Labels based on Article content

So I wanted to create a macro (very similar to http://confluence-addons.connect.adaptavist.com/label-tools/latest/choose-label-macro.html but definitely not identical unfortunately :\ )

That adds labels/suggest in a popup box or something similar from a given list, in case the words in the label-list appear in the confluence article.


Is it possible?

Can I do it "macro-only"?

Without creating a plugin or anything like that..?

Thanks a lot!!!

1 answer

This widget could not be displayed.
Stephen Deutsch Community Champion Sep 26, 2017

This might be a good starting point:


Although the code is old, it should still work. Just don't forget to change the &lt; and &gt; to < and > respectively.

How do I use this function?



I don't know what parameters I should give it, but it seems like it would give me exactly what I need, and then I will only need to list it.

maybe, if it is possible, how do I access the page's content?

I could check the page's content and if some words exist there, I will add them as labels- that seems like an ideal solution, don't you think ?:)


Thanks a lot!!!!! :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

279 views 2 4
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