sql macro and wiki outpput

Hi,

I created a macro in a plugin which returns a vm with some html, and when i try to use the sql macro and pass the wiki markup ; it returns the vm as a string and not the rendered html.

Im using confluence 5.3.4 and sql 6.30

Regards

Nelson

4 answers

This widget could not be displayed.

I don't understand your question. Can you post more details including markup?

This widget could not be displayed.

Sql macro is able to render another macros by passing the wiki markup and selecting output as wiki ,so

I created a macro in a plugin (not user macro) and pass the wiki markup to the sql macro as

concat('{transition-deal:Status=Pursue|Text=No|pageId=',pageId,'}' ) as Actions

the sql macro output the following
<button title='Pursue' class='aui-button' onclick='dealTransitionConfirmation('Pursue', '/plugins/change-status/pursue-deal.action?pageId=27459751', 'Exploring')'><span class='aui-icon aui-icon-small Pursue' style='background-size: 16px !important;'></span> </button>
 
my macro extends BaseMacro and implements Macro.
it returns VelocityUtils.getRenderedTemplate("/vm/Btn.vm", contextMap);

Thanks
This widget could not be displayed.

Any update?

Thanks

This widget could not be displayed.

See this question: https://bobswift.atlassian.net/wiki/questions/77005157. I don't think I can help you any further.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

81 views 1 0
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