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

0 votes
Accepted answer

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


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 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,526 views 25 14
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