Advanced Roadmaps plans display blank with Cannot read property categoryId of undefined error in the console in Jira
プラットフォームについて: 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 loading some Plans, the screen begins to render and then finishes completely blank. In the browser console, the error "Cannot read property 'categoryId' of undefined" is presented.
環境
All versions of Jira 8.x and Advanced Roadmaps 3.x.
診断
- The message
Cannot read property 'categoryId' of undefined
is shown in the browser's console There are results shown in the query below (it should be empty under normal circumstances):
select p.pkey as "Project Key", a.issuenum as "Issue Num", a.id as "Issue A ID", b.id as "Issue B ID" from jiraissue a join jiraissue b on a.issuenum = b.issuenum and a.project = b.project and a.id < b.id join project p on a.project = p.id where a.id is not null;
原因
This Roadmap Plan error is due to Jira having duplicate issue keys: two different issues have the same number on the same project, like PROJ-12345.
ソリューション
The solution is to fix the duplicates as advised in How to fix duplicate issue keys in Jira or to exclude the duplicate issues from the Plan's filter.
Additional Scenario
The exception can also occur if the Plan View Settings is configured to use "Color by: Status" as described in:
In this case, the Workaround is to Set the Color by option to None (which is the default value).
In some cases, setting a smaller browser window would allow the plan to load so that user can change the Color by option.