Is it possible to perform a mass "find and replace" operation in Confluence, similar to using "Control + F" and replace, to update all instances of a specific text (e.g., "Company A") with a new text (e.g., "Company B") across the entire platform?
Our company is undergoing a minor rebranding effort, which involves renaming some internal products from "A" to "B". We need to find all occurrences of "A" and replace them with "B" in a bulk update.
We are looking for a way to:
Thank you in advance for any assistance or guidance provided.
@Kristian Klima mentioned our app Find and Replace by Easy Apps.
It's one of a suite of content editing tools in Space Content Manager.
You can use a script as well if your use case is not too complicated and not to often.
Hello @jforristal ,
This could be done with a script using Power Scripts for Confluence. For example:
string cql = "Space=DEMO";
number [] pages = selectPages(cql);
for (number p in pages) {
%p%.content = replace(%p%.content, "A", "B");
}
If you would like to use some REGEX, you could also use the matchReplace() function. I am a support engineer with Appfire, so feel free to ask for additional help with the script. Here is a link to our support portal:
https://appfire.atlassian.net/servicedesk/customer/portals
Regards,
Hyrum
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @jforristal
There is an app for that :)
Chances are you'll find another app(s) out there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @jforristal
I'm affraid it's not possible with built-in functionality.
But you can make it through REST API.
You can write a simple python script to parse all spaces and pages, look for text and replace it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.