You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I think the CLI from BobSwift is the best and easiest way to do that.
As mentioned in an other answer, that the script isn't working, here a working command:
-a runFromPageList --space SPACKEY--title "TITLE" --descendents --common "-a renamePage --space SPACKEY--title \"@title@\" --newTitle \"PREFIX-@title@\""
Replace SPACEKEY, TITLE and PREFIX.
We use the https://marketplace.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy plugin. Using that, copy a page tree, and before copying, bulk rename pages with a find-and-replace (third screenshot).
Another option would be to use the WebDAV add-on(comes pre-installed). You could map Confluence as a drive and then use a batch/shell/powersehell script to change them.
Thanks @Benoit Plet .
Same question as @Michal Marko , could you provide an example? Because the vendor documentation does not talk about bulk renaming:
Here is an example that adds a prefix ("RG - ") to all pages and descendants:
The only way I currently know is to use the API and try to do it that way. You would need to write a script that pulls every page title, checks if that word appears in it, and if so then replace it and update the page.
You would need to use the API call to update a page:
You would have to use a GET call to pull each page and then use the PUT call to update, unless you know before hand what the pageId is of each page you need to update.
If you want a plugin that will make this a little easier, but still manual, then check out: https://marketplace.atlassian.com/apps/1214087/space-admin-for-confluence
There is no replace all function when it comes to the API. You would have to update each page one at a time with the API.
If you want a replace-all type function then that would be something done in the actual app with a plugin, like that space admin plugin I linked to.