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: 

setMacroJsOverride for macro with no parameters

robert_egan_305
July 23, 2020

I have a macro with no parameters. All the content is in the body.

In the past I have called setMacroJsOverride to define an 'opener' callback. I still want to do that with this macro, except it seems the editor does not call the opener when the macro has no parameters.

What callback should I define instead of 'opener'?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Bill Bailey
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.
July 23, 2020

What if you add a dummy parameter to your macro? Does it work then?

robert_egan_305
July 24, 2020

Yes. I decided to add a parameter called "description" and make it required. Which was probably a good idea anyway, considering how poorly developers document their content :)

Yusuf TAMBAG
September 14, 2020

Just put empty parameter tag like <parameters/> inside macro definition, parameter is not required but parameters tag is.

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events