Change URL's in database

Hello,

I will have to change DNS name which is used by our confluence and jira.

My users are often adding links in confluence to some pages in jira. This URL’s won’t work anymore after changing DNS names used my applications.

It’s too much links to change it manually, so I would like to change it directly in database.
I already changed links in tables: confluence.LINKS and confluence.EXTRNLNKS but I still see old URL’s on some confluence pages content.

Could someone tell me where is content of the sites stored?

I checked table confluence.content but I don’t see my URL’s there.

best regards
Karolina Radziwon

2 answers

1 accepted

This widget could not be displayed.

Hey,

Your link was usefull, I finally found table which I need:

update confluence.BODYCONTENT set BODY = REPLACE(cast(BODY as nvarchar(max)),'/OLD_URL/','/NEW_URL/') where BODY like '%OLD_URL%';

Thank you :)

Karolina


This widget could not be displayed.

Hi Karolina, are you refering to the links inserted by JIRA Issue macro? if so, they may be changed automatically once you recreate the application link between JIRA and Confluence. However, if they don't update, you may follow the steps here (just don't forget to make a database backup).

Cheers

Hello Tiago,
Thank you very much for answer. Links created by Application Links are not a problem, I already changed them.

I’m talking about static links which are inside of confluence sites content.
Unfortunately my users created lots of links like this to tickets in JIRA, and sometimes even to other sites in confluence.
I would like to change this URL’s for them. It’s not a problem to do this using SQL, but I’m not sure where to find site’s content.

As I said I change links in two tables, but it’s not enough.

regards
Karolina

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

602 views 8 6
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