Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events