Updating links in custom fields

Hi All,

we have currently migrated a JIRA and a Confluence instance to a different JIRA and Confluence. The old JIRA had custom fields which have links pointed out to the old Confluence pages.

Because of migrations these links broken because these point out to the old Confluence instance.

After migration only the links first part changed: https://oldConfluence/spaceX/pageB -> https://newConfluence/spaceX/pageB . So I think it wouldn't be a too difficult problem.

My question is how can these custom field links be renamed from the old links to the new ones? Is there a script which replaces the "https://oldConfluence" part to the "https://newConfluence"?

Thanks in advance!

3 answers

1 accepted

Consider adding a URL rewrite rule to the confluence webserver to rewrite the old URL to the new URL. You would need to continue with both DNS names in place for the confluence server.

Many thanks for the suggestion!

0 vote

No, there's no search-and-replace function, or a plugin that I know of that will provide it.

If it were a handful of issues, I'd suggest resorting to manual edits, but for a larger number, I'd look at scripting (via the Jira CLI probably), writing a quick "bug-fix" plugin, export-edit-import the xml or possibly an SQL index. The best option depends on your size and usage of Jira though.

The easiest solution, IMO, is to export data into XML, search and replace, and restore from modified XML.

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot