Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,433
Community Members
 
Community Events
165
Community Groups

How to get the macro body of the system macro's from the confluence page ?

Hi All

I want to get the macro body of the system macro(not the user macro) in confluence from the confluence page.I want to do it with script runner?

Anybody knows how to do it ?

sectionmacro.PNGIn the above screenshot, I have used "Section macro"(inbuilt confluence macro).I want read and update the macro body .

Does anybody knows how to do it ?

Regards

Sushma

1 answer

I think you pretty much have to get the storage value and parse the XML and find the macro with <ac:structured-macro ac:name="section">

Then look at the text inside <ac:rich-text-body>

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

174 views 7 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you