Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-73193

Performance of Create Issue dialog creation degrades with high number of versions




      Issue Summary

      The "Create Issue" dialog open performance is inversely proportional to the amount of versions available to the project.

      The delay is not in generating the version list on the server, rather, the front-end creating the AUI dialog containing the versions. The delay manifests during the greyed out background with loading spinner after clicking the Create Issue button, and the Create Issue dialog actually appearing.

      This is because Jira does not lazy load versions based on user input to the version picker, rather, they are sent by the server as part of the QuickCreateIssue!default.jspa page, which then needs to be parsed and rendered by AUI.

      Steps to Reproduce

      1. Create a project with 1000 versions
      2. Click create issue. Time the dialog open time
      3. Increase the version count to 10,000.
      4. Click create issue. Time the dialog open time

      Expected Results

      • The dialog should open at the same speed, regardless of the version count

      Actual Results

      The screen turns dark grey with a loading spinner, and takes significantly slower compared to the lower version count test.

      Test results

      Test Version count Dialog opening time
      Profile-1000versions-407ms.json 1000 407ms
      Profile-4000versions-851ms.json 4000 851ms
      Profile-8000versions-1204ms.json 8000 1218ms

      8000 versions performance overview:

      It's clear the versions are sent by the server during the QuickCreateIssue.jspa page, rather than being lazy loaded. Snippet of QuickCreateIssue.jspa:

          <optgroup label=\\\"Unreleased Versions\\\">\\n                                                <option value=\\\"10000\\\">\\n                    New Version 0\\n                </option>\\n
                                    <option value=\\\"10001\\\">\\n                    New Version 1\\n
      ..... and so on... 


      Currently there is no known workaround for this behavior. A workaround will be added here when available


        1. image-2022-01-17-13-03-27-017.png
          48 kB
        2. Profile-0-293ms.json
          6.95 MB
        3. Profile-1000-586ms.json
          8.02 MB
        4. Profile-1000versions-407ms.json
          9.43 MB
        5. Profile-4000-1113ms.json
          8.62 MB
        6. Profile-4000versions-851ms.json
          10.16 MB
        7. Profile-8000versions-1204ms.json
          10.59 MB
        8. screenshot-1.png
          97 kB

        Issue Links



              cf7069360d7e Mateusz Witkowski
              allewellyn@atlassian.com Alex [Atlassian,PSE]
              10 Vote for this issue
              20 Start watching this issue