Clicking an issue link results in project not available error page
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
When a user clicks on an issue link, they are taken to an error page rather than the issue. The URL for the page doesn't match the normal pattern.
- Expected: base url/{{/Issues/}}issue key
- Actual Result: base url/{{/project/}}/issue key
The error page text is "This project isn't available. It may have been deleted or your permissions may have changed." It will look similar to this screenshot:
原因
When configuring a custom regex pattern for project keys, an administrator has used an expression that also matches the configured pattern for issue keys. This makes JIRA mistakenly identify the issue key as a project key.
Default: ([A-Z][A-Z0-9]+)
Broken: ([0-9A-Z_]{2,32}-?[0-9A-Z_]{1,32})
When JIRA looks at the above and notices that it can accept numbers in the second section of the Project Key before any Alphabets, when you click on the Issue Key, you would get redirected to the project URL instead and get the error.
ソリューション
Follow the instructions at Changing the project key format to set the pattern for project keys to an expression that does not overlap with the pattern you use for issue keys.
To fix this example, the 0-9 has been dropped from the second section following the -
Broken: ([0-9A-Z_]{2,32}-?[0-9A-Z_]{1,32})
Fixed: ([0-9A-Z_]{2,32}-?[A-Z_]{1,32})