Unrecognized Macro (choose-label) within a User Macro

We've written a user macro in Confluence which shows a list of labels we want the user to seelct from.  We just recently upgrade from Confluence 5.10.7 to 6.4.1 and the the user macro "vendorpicker" is showing "Unknown macro: {choose-label}".   I can edit the page and add the choose-label successfully and works just fine.  Anyone have an idea on why it won't recognize it now.

  • User Macro Configurations
  • Macro Name = vendorpicker
  • Visibility = Visible to all user in the Macro Browser
  • Macro Title = vendorpicker
  • Categories = Confluence content
  • Icon URL = <blank>
  • Documentaiton URL = <blank>
  • Macro Body Processing = No macro body
  • Template = 
## Macro has a body: N
## Output: HTML
##
## Developed by: XXX
## Date created: 05/20/11
## Date of last update: 08/18/15
##
## Used to auto label a page from a selection

## @noparams
<ac:structured-macro ac:name="expand">
<ac:parameter ac:name="title">Please select all vendors that are used by this platform...</ac:parameter>

<ac:macro ac:name="table"><ac:rich-text-body>
<ac:macro ac:name="tr"><ac:rich-text-body>
<ac:macro ac:name="td"><ac:rich-text-body>

<ac:macro ac:name="unmigrated-wiki-markup"><ac:plain-text-body>
<![CDATA[{choose-label:labels=vendor_a|Descriptions=Vendor A}]]>
</ac:plain-text-body></ac:macro>

</ac:rich-text-body></ac:macro>
</ac:rich-text-body></ac:macro>
</ac:rich-text-body></ac:macro>
</ac:rich-text-body></ac:structured-macro>

 

Note:  I only kept one choose-labels line, in reality we have a number of them

1 answer

0 vote
Thomas Schlegel Community Champion Jan 09, 2018

Hi Michelle,

this works for me:

<ac:structured-macro ac:name="choose-label" ac:schema-version="1">
<ac:parameter ac:name="title">test</ac:parameter>
<ac:parameter ac:name="labels">vendor_a</ac:parameter>
</ac:structured-macro>

Thanks Thomas,

However that is not giving us the same results.  I added a couple more lines into the code (below) and a screenshot to show you what end users would see (with the old code).

Snippet with more vendor lines

<ac:macro ac:name="unmigrated-wiki-markup"><ac:plain-text-body>
<![CDATA[{choose-label:labels=vendor_a|descriptions=Vendor A Name}]]>
<![CDATA[{choose-label:labels=vendor_b|descriptions=Vendor B Name}]]>
<![CDATA[{choose-label:labels=vendor_c|descriptions=Vendor C Name}]]>
</ac:plain-text-body></ac:macro>
vendorpickerOutput.GIF

Ok... this might be acceptable.  To make it more manageable I put each provider on it's own line.

<ac:plain-text-body>
<ac:structured-macro ac:name="choose-label" ac:schema-version="1">
<ac:parameter ac:name="labels">
vendor_a,
vendor_b
</ac:parameter>
<ac:parameter ac:name="descriptions">
Vendor A,
Vendor B
</ac:parameter>
</ac:structured-macro>
</ac:plain-text-body>

The down side to this macro is some of our descriptions are longer than the width of the box.  Not sure how to fix that part!

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 Apr 13, 2018 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...

381 views 21 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