Broken or outdated issue weblinks in Jira
プラットフォームについて: Data Center のみ - この記事は、Data Center プラットフォームのアトラシアン製品にのみ適用されます。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
After changing Jira's base URL, the issues' web links that pointed to the modified base URL will not update and will still point to the old value.
環境
Jira 7.x and 8.x versions
診断
1) Navigate to Issues > Select any issue with a WebLink pointing to the updated base URL
2) The Weblink points to the old base URL
原因
The base URL update does not update the records in the remotelink
table.
ソリューション
Manually update the records via on the remotelink
table.
You should always take a full database backup before making any direct modifications to Jira's database. This will ensure that you can perform a restore to a known good state should anything go awry.
Please follow best practices for Change Management and test and validate these settings in a Test/Development and Staging environment prior to rolling any changes into a Production environment. This is to validate these changes and ensure that they will function well within your infrastructure prior to placing these changes in production.
Select all entries pointing to the old base URL:
select * from remotelink where url like '%old url%';
Use the replace function to replace the old base URL with the new value. Replace is a function based on string match, thus this is only going to update the URL portion specified inside quotes.
update remotelink set url = replace(url,'oldurl','newurl');
For MS SQL Server, it's necessary to use CAST:
update remotelink set URL = CAST(REPLACE(CAST(URL as NVarchar(MAX)),'oldurl','newurl') AS NText);
- Refer to our Changing Jira base URL KB for other hard-coded URLs that might need to be updated.