Created vs Resolved gadget failing to load after upgrade

robotsnoindex

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

    

Summary

The "Created vs Resolved" gadget is failing to load after upgrading the Jira application with the error "Cannot read properties of undefined (reading 'scale')" in the console log of the browser 



Environment

All

Diagnosis

Console.log output shows the following when loading a dashboard that contains the "Created vs Resolved" gadget

batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-UK:4174 Can not import amd Module jira-dashboard-items/createdvsresolved gadget with id '17982': Cannot read properties of undefined (reading 'scale') TypeError: Cannot read properties of undefined (reading 'scale')
at Object.n.plottable (batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-UK:4653:10634)
at batch.js?agile_global_admin_condition=true&baseurl-check-resources=true&healthcheck-resources=true&jag=true&jaguser=true&locale=en-UK:4658:195
at l (batch.js?locale=en-UK:10:2044)
at u (batch.js?locale=en-UK:10:946)
at l (batch.js?locale=en-UK:10:1949)
at u (batch.js?locale=en-UK:10:946)
at l (batch.js?locale=en-UK:10:1949)
at u (batch.js?locale=en-UK:10:946)
at l (batch.js?locale=en-UK:10:1949)
at u (batch.js?locale=en-UK:10:946)

Cause

The cause of the TypeError above was found to be due to customizations applied to the  jira-gadgets-plugin-8.22.2.jar jar file contained in the atlassian-bundled-plugins directory.
Upon upgrading the Jira application the new jira-gadgets-plugin jar file was replaced with the previous version which was not compatible with the new version of Jira.

Solution

  1. Download the appropriate TAR.GZ or ZIP install file for the version of Jira currently installed
  2. Extract the atlassian-bundled-plugins directory from the install file and replace the jira-gadgets-plugin jar file in the Jira_Install directory with the version extracted from the newly downloaded install file.
  3. Add the any customizations applied in the previous version of the JAR file to the new version of the JAR file
  4. Restart Jira
  5. After Jira has been restarted the "Created vs Resolved" gadget should load successfully.


Last modified on Mar 17, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.