JIRA 7.10: TypeError: AJS.Gadget is not a function

Issue #23 resolved
Former user created an issue

Gadget is not displayed in dashboard anymore, console puts out:

Uncaught TypeError: AJS.Gadget is not a function
    at search_fields_gadget_configuration (sk.eea.jira.search-fields-gadget:js.js?locale=de-DE:3)
    at ifr?container=atlassian&mid=10667&country=DE&lang=de&view=default&view-params={"writable"%3A"true"}&st=atlassian%3AGoUYYP6%2F%2BuOnwYW3qGovvQhqA567HIWg6%2FxRK6LS7l%2BwbbNX5o5uLMqo4IM3fR2jhQnCfUgmIu9hhNvVg1E%2BtHMsYz5qVBAP%2F8I3xg%2FF7zYEXvF%2Bz6KbBlP1ALJ7JTGqY%2F1GoCadJYmSI5IeYvgI2m8WaAeNMMUFSUvZwZZC%2F1AXpu9q900iqu4mwlTuU7gjif1jHFPMc324DyDVz3vRd7sl0qlGQi8C7VCQ%2FvDBmpC3WsKdj%2BeodnSsJHMh4VhQaeTVxd%2Bl0iwyUjS%2Ba5KpeSwu47kJauPmC%2Fk%2FgQRtU2j%2BDjMBQLMfCAbjnVFiozAv6M9wKQ%3D%3D&up_isConfigured=true&up_enableReload=false&up_searchfilter=10300&up_searchtitle=<censored>&up_searchmode=OR&up_searchfield1=customfield_10510&up_searchfield2=-1&up_searchfield3=-1&url=<censored>%2Frest%2Fgadgets%2F1.0%2Fg%2Fsk.eea.jira.search-fields-gadget%3Asearch-fields-gadget%2Ftemplates%2Fsearch-fields-gadget.xml&libs=auth-refresh:337

Maybe requirement of AJS.Gadget (#requireResource("com.atlassian.gadgets.publisher:ajs-gadgets")) not defined in search-fields-gadget.xml?

Comments (4)

  1. Jozef Kotlár

    Thank you for report,

    I have checked on FF, Chrome, Edge against 7.10.0 without this error. Can you please be more specific?

    Jozef

  2. CAIGOS Atlassian Admin

    We created a jira test instance on a cloned server and updated from jira 7.8 to 7.10. I don't know if it didn't work in 7.8 on that instance, too, or it broke with the upgrade to 7.10. Interestingly we restarted that server three times now and with the third restart the problem was gone again. I assume it was some OSGI weirdness causing this. Thanks anyway! I hope it will work right away when we upgrade our productive server.

    Regards, Markus

  3. Jozef Kotlár

    Not sure, but when upgrading, take care to remove all temporal files as "plugins/.bundled-plugins", "plugins/.osgi-plugins", "plugins-cache", "plugins-osgi-cache", "plugins-temp"

  4. Log in to comment