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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

372 views 20 10
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