Changing text in child pages of a certain page in Confluence using the CLI


I'm migrating an old wiki system to a Confluence system and i'm very happy with the standard possibilities Confluence offers. But i've run into a problem while migrating lots of similiar articles.

I have migrated a list of function descriptions into Confluence and now i wish to add a quick links bar to each of these function description articles. First i looked for a macro or plugin of any kind, but no dice. Next i tried the Confluence CLI to make a batch find and replace thing, but i can't get it to work.

I am certain i can achieve want i want with the CLI. I can change a single article just fine, but i will need some kind of query to select all child pages of an article, i've seen an example wich changes everything in a space, but thats not specific enough for me. I'm not familiar enough with the querying mechanism to force anything out of it, so any suggestion is very welcome!

Thanks in advance!

1 answer

1 accepted

1 vote
Accepted answer

modifyPage action can be used to do the modification and How to automate adding text to Confluence pages shows how to do this across a selection of pages. The latter requires access to the database which you do not have with OnDemand. So, you will need to do something similar using the runFromPageList action which can select direct children or all descendents from a specific page.

Awesome, thanks for your answer! I will check it out today.

Thank you very much Bob, this is exactly what i need. Saves me a lot of time.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,099 views 17 14
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