I want to remove a Macro on a page and get content inside it. Can Scriptrunner or

Colin_McDermott February 26, 2025

We have 2x EOL macro's in HTML elements and Include content

We want to get rid of these macro's and we don't want to manually edit each page. 

 

I can see when I view page storage, that HTML elements "shared block" is as the example at the bottom of this comment. 

 

Can I use the confluence scriptrunner Macro editor to pull the content from inside, remove the macro and just paste it on the page? 

i.e. so the macro is removed and only 5.1.0 remains?

 

 

<ac:structured-macro ac:name="shared-block" ac:schema-version="1" ac:macro-id="a2ecad27-4dd6-41cb-a8a8-6ee87bee4091"><ac:parameter ac:name="shared-block-key">release_version</ac:parameter><ac:rich-text-body>
<p>5.1.0</p></ac:rich-text-body></ac:structured-macro>

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.19.30
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events