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

sidhartha July 28, 2015

Hi,

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 'contact@adsupport.com' 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 contact@adsupport.com, he is taken to a different link. For example, http://www.google.com. Is it possible? Let me know if you need some more information.

Thanks!!

3 answers

1 vote
Lukas Knoch -Rumpelcoders-
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.
July 28, 2015

You can use the Search and Replace Plugin. https://marketplace.atlassian.com/plugins/at.rumpelcoder.confluence.search-and-replace

Edit: I think you could use @Bob Swift [Bob Swift Atlassian Add-ons] 's CLI for this. Have a look here: https://bobswift.atlassian.net/wiki/display/ACLI/How+to+use+findReplace

Lukas Knoch -Rumpelcoders-
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.
July 28, 2015

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

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
July 28, 2015

Specifically, you will need to use modifyPage (https://bobswift.atlassian.net/wiki/display/CSOAP/Reference#Reference-modifyPage). And yes, it will work with Confluence Cloud.

Betsy Walker {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.
July 28, 2015

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

0 votes
Gary Mize November 29, 2017

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.

0 votes
Siddheshwar mhetre
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.
July 28, 2015

Hi,

 you can update the link by using the database query.

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

Regards,

Siddhesh

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events