I am creating a user macro, and I want to default its output type to BLOCK instead of INLINE.
I can achieve this by adding the following parameter to the user macro template:
@param atlassian-macro-output-type:title=Output Type|type=enum|enumValues=BLOCK|required=true
However, this will always open the macro detail window (where you can set other parameters) every time a user insert this macro due to the "required=true" value, but if I remove it, the parameter won't work. I want a user macro that can be directly inserted as BLOCK without having to go through the macro detail window.
So I am wondering if I can use Velocity in my macro template to set the default output type to BLOCK?
Community moderators have prevented the ability to post new answers.
Have you tried required=false? What version are you using by the way? I'm on 5.5.6. The reason I ask is because when I try that as a user macro parameter it is always set back to inline when I save the macro parameters. It only works for toggling between inline and block for me by using the buttons that show up when you click on the macro.
Yes, I did, which will cause the issue that you described. So it has to stay true. That's why I am trying to find other solutions, like using Velocity.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.