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

Hello!

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

465 views 19 9
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