How do I update the same links across different pages/spaces in atlassian


Here is the use case for the above query. In our Wiki, we have different spaces and a lot of pages within each space. However, we have used the same link, for example '' to inform someone to contact our support team to get more information. Now, we want to update all such instances, such that when a user clicks on, he is taken to a different link. For example, Is it possible? Let me know if you need some more information.


3 answers

You can use the Search and Replace Plugin.

Edit: I think you could use @Bob Swift [Bob Swift Atlassian Add-ons] 's CLI for this. Have a look here:

Sry, just seen that you are on cloud version. Not sure how to do it there.

Specifically, you will need to use modifyPage ( And yes, it will work with Confluence Cloud.

All of the Command Line Interface (CLI) add-ons (for JIRA, Confluence, Stash, FishEye, Crucible, etc) run on both Server and Cloud instances. ;)


 you can update the link by using the database query.

UPDATE BODYCONTENT SET BODY = replace(BODY, 'http://old_link', 'http://new_link)



Create the shared page in one place.  That can be in one of the affected Spaces or in a common space ( maybe call it "Shared Pages" ).

Insert that link in your existing Spaces anywhere its needed.

When you make changes to the "shared space's" page the changes will show up everywhere.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,777 views 25 10
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