-
Bug
-
Resolution: Fixed
-
Low
-
8.20.12, 9.5.0, 9.4.1, 8.20.16
-
8.2
-
2
-
Severity 3 - Minor
-
11
-
Issue Summary
Error on Jira Custom Fields Optimizer when used on fields linked to issues of archived projects:
This is reproducible on Data Center.
Steps to Reproduce
- Create a sample project
- Create a sample CF and assign it to global context only; assign the CF to screens associated to the sample project
- Create a few issues in sample project with values on the CF
- archive the sample project
- try to optimize the sample CF
Expected Results
Custom Field global context is removed, set to specific project
Actual Results
UI error, field remains with global context. The below exception is thrown in the atlassian-jira.log file:
023-01-02 11:13:47,164-0300 http-nio-42016-exec-9 INFO admin 673x1833x1 rlxu6i 127.0.0.1 /rest/optimizer/1/recommendation/localise-project-10404 [c.a.j.optimizer.rest.OptimizerResource] Call applyRecommendation with id: localise-project-10404 2023-01-02 11:13:47,165-0300 http-nio-42016-exec-9 INFO admin 673x1833x1 rlxu6i 127.0.0.1 /rest/optimizer/1/recommendation/localise-project-10404 [c.a.j.o.impl.actions.ActionManager] Applying recommendation RecommendationBean{id='localise-project-10404', name='buz3', category='localise-project', customFieldId='10404', projectIds='[]', type='Text Field (single line)', performanceImpact=1.0, resolved='false'} 2023-01-02 11:13:47,174-0300 http-nio-42016-exec-9 ERROR admin 673x1833x1 rlxu6i 127.0.0.1 /rest/optimizer/1/recommendation/localise-project-10404 [c.a.j.optimizer.rest.OptimizerResource] Error while applying recommendation with id localise-project-10404 java.lang.UnsupportedOperationException at java.base/java.util.AbstractList.add(AbstractList.java:153) at java.base/java.util.AbstractList.add(AbstractList.java:111) at java.base/java.util.AbstractCollection.addAll(AbstractCollection.java:352) at com.atlassian.jira.optimizer.impl.actions.LocalizeCfAction.applyRecommendation(LocalizeCfAction.java:59) at com.atlassian.jira.optimizer.impl.actions.ActionManager.applyRecommendation(ActionManager.java:64) at com.atlassian.jira.optimizer.impl.actions.ActionManager.applyRecommendation(ActionManager.java:51) at com.atlassian.jira.optimizer.rest.OptimizerResource.applyRecommendation(OptimizerResource.java:113) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Workaround
Manually change the context of the desired field from Global to Project-specific as presented on Configuring custom field contexts.
- duplicates
-
JRASERVER-73207 Jira Optimizer does not consider Archived Issues when Checking if a Field is Used
- Closed
- is related to
-
JRASERVER-72075 Field Optimizer should allow Jira admins to choose if context should be removed for fields without value
- Closed
- mentioned in
-
Page Loading...
- relates to
-
FLASH-3807 Loading...
-
PSR-829 Loading...