Bulk Change of Links in Confluence

We are heavy users of Confluence and Jira.

In Confluence we have links to many Jira issues and with our recent move from Hosted Jira to OnDemand Jira all those Jira issues links in Confluence are now broken.

The urls have changed from https://blah.onjira.com/ to https://blah.atlassian.net/ so should be reasonably easy to do a replace if such a facility or process exists.

Our Confluence version is 4.1.

Any help is muchly appreciated.

2 answers

1 accepted

Hi Glenn,

If the name of your JIRA instance is still similar, you could just reestablish the application link to your JIRA. However it seems that you're using OnDemand version, which is unable to establish application link to outside instance due to its restricted function.

Perhaps you could use the following SQL. Please bear in mind this would work with MySQL and backup your database for safety purpose.

	SET BODY = replace(BODY,'https://blah.onjira.com/','https://blah.atlassian.net/') 
	WHERE BODY LIKE '%https://blah.onjira.com%';

Hope it helps

So, I have about 10k links of varying macros and types. Of course, doing this by hand is something appropriate to 1982's wordstar editor, which didn't have a "find and replace" command. That we cannot do this is a definite time-sink.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

787 views 33 5
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