Search on Macro Created Values

Hello! Fairly new to Confluence, experienced JIRA (user and admin.)

We are setting up a proof of concept to use Confluence as a requirements repository. I've created templates for some of our standard deliverables. We have a need to add attributes to the documents created via the templates.

I created a user macro that creates drop down lists for the user to fill in - but the downside is that the value is searchable when it's just text typed in a confluence page, but not when it's created via the macro.

(Example: A field we need is Product. The user macro presents options Product A, Product B, Product C. When I search "Product A" the page created with the macro does not appear. Ideal scenario would be able to search "Product: Product A" but even a search result of "Product A" would be helpful.)

I know the best way to collect data attributes like this is via labels, but I'm not sure we can expect our new to Confluence users to consistently add the correct labels (I've embedded static ones within the templates).

Ideally, I'd like the macro values to be searchable. Another idea I searched for was forcing the addition of labels, or converting text to labels but I'm coming up short on all my ideas.

Thanks for any help you can throw my way.

2 answers

1 accepted

This widget could not be displayed.

Hi Lara,

have you tried the list-option of Template Variables: https://confluence.atlassian.com/doc/create-a-template-296093779.html#CreateaTemplate-Templatevariables

Another solution could be the Scaffolding-Plugin with Label-Options-Macro: https://docs.servicerocket.com/display/SCAF/label-options

Another idea could be to work with the Page-Properties Macro. Based on your Confluence version, as it is new i assume you have 5.10, you can perform more or less advanced searches for values in a page-property...

so far my first ideas

greetings
Benjamin

I had tried the list variables option - I can't recall why I didn't quite like it smile

But I just used it again within the page properties macro and I think this might be the best solution! Since we are still in the POC stage, we're pretty locked down on bringing in add-ons (for the moment) but I'll save this link to look at in the future - seems like labels can be super useful.

Thanks so much for your help! This will work for us! Thank you.

This widget could not be displayed.

Given the suggested answer, it seems that searching macro content is a no-go?

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

487 views 6 6
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