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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

778 views 23 12
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