Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk move nested macros

Viet Le
Contributor
May 22, 2024 edited

I'm currently in the middle of migrating from confluence server to confluence cloud. 

Since Atlassian removed the feature of nesting a macro within a 3rd party macro, I am left with 50+ macros nested in a 3rd party macro. For context, confiforms macros nested in a refined toolkit application. 

 

I have to essentially remove the 50+ confiforms macros from within the refined toolkit macro which is both time consuming and tedious. Not to mention that it messes with the formatting.

 

Does anyone know of a better way to un-nest this without drammatically messing up the format? I tried copy and pasting the confiforms macro outside of the refined toolkit app but that led to undesirable results and messy formatting.

2 answers

1 vote
Shawn Doyle - ReleaseTEAM
Community Champion
May 22, 2024

This would be a job for scriptrunner.  

I would play around with Scriptrunner to find a way to recreate the pages so the macros are not nested, and then work on formatting the page so it is readable again.  I do not see a way to avoid throwing off the formatting.  I would expect this to take many hours if not days.

Or, I would export the entire site, create scripts in python, perl or your favorite scripting language to rewrite the pages, and import them to a new space that I would then test and use as my export source in the migration to the cloud.

There may be marketplace apps or partner-supplied tools for unnesting but I am not aware of one publicly available.

0 votes
Michael Yang - Shinetech Software
Atlassian Partner
June 2, 2025

If you’re trying to clean up or move nested macros in bulk, check out our app Easy Bulk Tools:
https://marketplace.atlassian.com/apps/1237934

It lets you bulk remove or replace macros across many Confluence pages.
No scripting needed — just a simple UI with support for space or label-based selection.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events