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.

UPDATE BODYCONTENT 
	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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,027 views 15 13
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