Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-33054

QuickCreate/Edit dialog incorrectly shows "Some issue types are unavailable..." warning

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Atlassian Update – 5-Dec-2018

      Hello, everyone! We have been performed tests and found that we are no longer able to replicate this behavior in the latest Jira 7.12.3. Since all the confirmed versions so far for this issue have been in EOL versions, and we are not able to reproduce in Jira 7.12.3, we will proceed to close this request, for now, and re-evaluate in case we are able to confirm the issue still exists in any newer versions, which will be done by our support team.

      Best regards,
      René Chiquete - JAC Champion

      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

      1. Navigate to jira.atlassian.com
      2. Click on the Create button to create an issue.

      Method 2

      1. Download and restore reproducible.zip;
      2. Access it using the following credentials:
        username: matheus
        password: matheus
        
      3. Click on the Create button to create an issue.
      4. If the above doesn't reproduce the behavior:
        1. type DEMO-1 in the search field;
        2. Click on 'Edit' on the issue;
        3. Close the Edit issue dialog;
        4. Open the 'Create' dialog again.

      Method 3

      1. 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)
      2. Edit an issue so that this warning is shown (using the quick edit dialog)
      3. Then try to create a new issue. The warning will be shown in the quick create dialog
      4. Right click on create issue and open it in a new tab. The warning will not be shown which is the correct behavior.

      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

      Workaround

      There is a KB in which there are workarounds mentioned in case you want to remove this message from showing in the create issue screen: Some issue types are unavailable due to incompatible field configuration and/or workflow associations.

      • This message is expected in the Issue edit screen.

      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

        1. behavior.mp4
          3.97 MB
        2. image-2018-05-08-12-22-04-812.png
          image-2018-05-08-12-22-04-812.png
          43 kB
        3. reproducible.zip
          46 kB
        4. Screenshot at Mar 22 11-30-39.png
          Screenshot at Mar 22 11-30-39.png
          43 kB
        5. Screenshot at Mar 22 11-32-09.png
          Screenshot at Mar 22 11-32-09.png
          20 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andreask@atlassian.com Andreas Knecht (Inactive)
              Votes:
              57 Vote for this issue
              Watchers:
              61 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: