How to allow a body for a macro

Hi,

I have created a macro that works fine.
Now, I would like to modify its behavior: the macro should have a content (text) specified in the editor and the macro would just be used to push this text inside a specifc structure provided by a Velocity file.
I thought that I had just to return true for "hasBody()" method but an error occur when I redeploy my application and the macro is marked as "unknown".
Could you please indicate me what could be the reason of this problem ?
Thanks in advance.

1 answer

1 accepted

When you define the macro, what did you select for "Macro Body Processing" in the admin? That should be where you indicate that the macro has a body.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

478 views 19 9
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