Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-20183

Jira throws Javascript error while loading large number of versions

      Issue Summary

      When a board is configured to load large number of versions, Jira will throw following Javascript error:

      Cannot read property 'key' of undefined
      

      For Firefox, the error will be:

      Exception: TypeError: t.project is undefined
      

      Environment

      • Jira 8.2.3
      • Jira 8.3.1

      Steps to Reproduce

      1. Use Data Generator to create 400+ versions associated with issues from multiple projects.
      2. Create a Kanban board with a complex filter. Eg:
        Project = "Sample Kanban Project" OR "Team" = MyTeam1 ORDER BY Rank ASC
        
      3. Save the filter and access the board.

      Expected Results

      The board loads all the versions from the projects and no Javascript error shown.

      Actual Results

      Following Javascript shown when users clicked on the Versions panel and no versions are shown:

      TypeError: Cannot read property 'key' of undefined
      at t.sort (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2144:1799)
      at Array.sort ()
      at t.getUnreleasedVersionList (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2144:2002)
      at Object.n.renderVersions (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:3209:2046)
      at Object.n.updateView (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:3209:1842)
      at Object.G.setVersionData (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2971:6364)
      

      Workaround

      Reduced the number of versions retrieved by the board, by adjusting its JQL.

            [JSWSERVER-20183] Jira throws Javascript error while loading large number of versions

            Armando Neto made changes -
            Description Original: h3. Issue Summary

            When a board is configured to load large number of versions, Jira will throw following Javascript error:

            {code}
            Cannot read property 'key' of undefined
            {code}

            For Firefox, the error will be:

            {code}
            Exception: TypeError: t.project is undefined
            {code}


            h3. Environment

            * Jira 8.2.3
            * Jira 8.3.1


            h3. Steps to Reproduce

            # Use Data Generator to create 400+ versions associated with issues from multiple projects.
            # Create a Kanban board with a complex filter. Eg:
            {code}
            Project = "Sample Kanban Project" OR "Team" = MyTeam1 ORDER BY Rank ASC
            {code}
            # Save the filter and access the board.


            h3. Expected Results

            The board loads all the versions from the projects and no Javascript error shown.


            h3. Actual Results

            Following Javascript shown when users clicked on the Versions panel and no versions are shown:

            {code}
            TypeError: Cannot read property 'key' of undefined
            at t.sort (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2144:1799)
            at Array.sort ()
            at t.getUnreleasedVersionList (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2144:2002)
            at Object.n.renderVersions (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:3209:2046)
            at Object.n.updateView (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:3209:1842)
            at Object.G.setVersionData (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2971:6364)
            {code}


            h3. Workaround

            Currently there is no known workaround for this behavior. A workaround will be added here when available
            New: h3. Issue Summary

            When a board is configured to load large number of versions, Jira will throw following Javascript error:

            {code}
            Cannot read property 'key' of undefined
            {code}

            For Firefox, the error will be:

            {code}
            Exception: TypeError: t.project is undefined
            {code}


            h3. Environment

            * Jira 8.2.3
            * Jira 8.3.1


            h3. Steps to Reproduce

            # Use Data Generator to create 400+ versions associated with issues from multiple projects.
            # Create a Kanban board with a complex filter. Eg:
            {code}
            Project = "Sample Kanban Project" OR "Team" = MyTeam1 ORDER BY Rank ASC
            {code}
            # Save the filter and access the board.


            h3. Expected Results

            The board loads all the versions from the projects and no Javascript error shown.


            h3. Actual Results

            Following Javascript shown when users clicked on the Versions panel and no versions are shown:

            {code}
            TypeError: Cannot read property 'key' of undefined
            at t.sort (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2144:1799)
            at Array.sort ()
            at t.getUnreleasedVersionList (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2144:2002)
            at Object.n.renderVersions (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:3209:2046)
            at Object.n.updateView (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:3209:1842)
            at Object.G.setVersionData (http://jira.megatron.com/vicky/s/9f56a5d58c111bc9e717d7de0ec9a795-CDN/ja95af/802003/7d70430a169e8519cad06ce4e13e018c/c4326ed06a07e0809f98015721255e8e/_/download/contextbatch/js/gh-rapid-work,jira.project.sidebar,atl.general,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&flexboards=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-MY:2971:6364)
            {code}


            h3. Workaround

            Reduced the number of versions retrieved by the board, by adjusting its JQL.
            set-jac-bot made changes -
            Fixed in Long Term Support Release/s New: [Download 8.5|https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html]
            Marcin Barzyk made changes -
            Fix Version/s New: 8.5.7 [ 92115 ]
            Andriy Yakovlev [Atlassian] made changes -
            Affects Version/s New: 8.5.5 [ 91600 ]

            Dear Atlassian,

            Please also add affected version 8.5.1

            Kind regards,
            Moses

            Moses Thomas added a comment - Dear Atlassian, Please also add affected version 8.5.1 Kind regards, Moses

            pastoraznar.francisco Sure, the version would be mentioned in fixed versions.

            Dmytro Borshchov added a comment - pastoraznar.francisco Sure, the version would be mentioned in fixed versions.

            Paco Pastor added a comment - - edited

            Will this ticket be updated if you backported this solution to the current Enterprise release version (8.5.X)? 

            Best regards.

            Paco Pastor added a comment - - edited Will this ticket be updated if you backported this solution to the current Enterprise release version (8.5.X)?  Best regards.
            Tomasz Majcher made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 489804 ]
            Andriy Yakovlev [Atlassian] made changes -
            Labels Original: flash warranty New: flash lts-backport warranty

            We've detected this problem in production -> 8.5.1. Should't be solved in a new release of this enterprise version rather than in a completly new version like 8.9.0?

             

            Best regards.

            Paco Pastor added a comment - We've detected this problem in production -> 8.5.1. Should't be solved in a new release of this enterprise version rather than in a completly new version like 8.9.0?   Best regards.

              dborshchov Dmytro Borshchov
              vshanmugam Vicknesh Shanmugam (Inactive)
              Affected customers:
              7 This affects my team
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: