Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Updating links in custom fields

Rumceisz June 4, 2012

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!
Rumi

3 answers

1 accepted

0 votes
Answer accepted
Cyril Egan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2012

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.

Rumceisz June 5, 2012

Many thanks for the suggestion!

0 votes
Jozef Kotlár
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2012

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

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 4, 2012

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events