The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Using confluence macro code inside user macro

Pradeep Panayal
January 23, 2018

I know that we can use Macro inside another macro by using <ac:structured-macro> tag.

Is it possible to use confluence mark up code in User Macro?

 

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 24, 2018

You can either put it inside an unmigrated-wiki-markup macro:

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1">
<ac:plain-text-body><![CDATA[<wiki_markup_here>]]></ac:plain-text-body>
</ac:structured-macro>

Or like this:

$action.helper.renderConfluenceMacro("<wiki_markup_here>")

Just replace <wiki_markup_here> with the wiki markup code.

Pradeep Panayal
January 29, 2018

Thank you @Stephen Deutsch.

TAGS
AUG Leaders

Atlassian Community Events