Details
-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
77
-
Severity 3 - Minor
-
6
-
Description
NOTE: This bug report is for JIRA Cloud. Using JIRA Server? See the corresponding bug report.
Summary
The Create Issue (AJAX) dialog incorrectly shows Some issue types are unavailable due to incompatible field configuration and/or workflow associations.
Steps to Reproduce
Method 1
- Navigate to jira.atlassian.com
- Click on the Create button to create an issue.
Method 2
- Download and restore reproducible.zip;
- Access it using the following credentials:
username: matheus password: matheus
- Click on the Create button to create an issue.
- If the above doesn't reproduce the behavior:
- type DEMO-1 in the search field;
- Click on 'Edit' on the issue;
- Close the Edit issue dialog;
- Open the 'Create' dialog again.
Expected Results
The create issue AJAX dialog would show all projects and issue types available without any warnings.
Actual Results
The create issue AJAX dialog does show all projects and issue types available, but shows the following message:
Some issue types are unavailable due to incompatible field configuration and/or workflow associations
This can be seen in the attached video: behavior.mp4
Original Description
To reproduce:
- Setup your JIRA instance so that you have a project/issuetype/workflow combination that shows this warning when you edit an issue (for the issue type field)
- Edit an issue so that this warning is shown (using the quick edit dialog)
- Then try to create a new issue. The warning will be shown in the quick create dialog
- Right click on create issue and open it in a new tab. The warning will not be shown which is the correct behavior.
The full warning is: "Some issue types are unavailable due to incompatible field configuration and/or workflow associations."
The root cause is in the FieldHtmlFactoryImpl class. It has a mutable static final Map of DISPLAY_PARAMS that's passed into both the getCreateHtml() and getEditHtml() field methods. If any of the fields modify this map and set certain params (such as "restrictedSelection") then these params will be passed to any subsequent calls as well until the server is restarted so that this map is restored to its inital state!
We should probably make this map immutable and create mutable copies everytime we call getEditHtml()/getCreateHtml(). Now if only I knew the idiot who wrote this code ...
Attachments
Issue Links
- has a derivative of
-
JRACLOUD-67499 QuickCreate/Edit dialog always shows "Some issue types are unavailable..." warning
- Closed
- is related to
-
JRASERVER-33054 QuickCreate/Edit dialog incorrectly shows "Some issue types are unavailable..." warning
- Closed
-
JRACLOUD-63549 Improve support for switching issue types where the switch will also include switching field configuration scheme
- Closed
- mentioned in
-
Page Loading...