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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,916 views 27 12
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