"Find and Replace" operation in Confluence

jforristal February 20, 2025

 

 

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. 

Request

We are looking for a way to:

  1. Find all instances of the old text ("A") across Confluence.
  2. Perform a bulk update to replace all occurrences of "A" with the new text ("B").

Thank you in advance for any assistance or guidance provided.

5 answers

0 votes
Stavros_Rougas_EasyApps
Atlassian Partner
February 20, 2025

@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. 

0 votes
Hyrum Steffensen _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2025

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

 

0 votes
jforristal February 20, 2025

Thanks guys

0 votes
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2025

Hi @jforristal 

There is an app for that :) 

  • Find and Replace by Easy Apps which I used to replace a product name in a space (two devices shared the 80% of the docs, so I just duplicated the space and ran the app... worked like a charm).
  • Link Management by Lively Apps which is focused on replacing elements of links

Chances are you'll find another app(s) out there.

0 votes
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2025

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events