We are currently migrating a gadget from JIRA 6 to JIRA 7
When loading the plugin and displaying the list of Gadgets in a Dashboard the following error appears in the log:
[Fatal Error] :70:434: Attribute name "data-initially-rendered" associated with an element type "script" must be followed by the ' = ' character.
2017-03-21 18:52:49,535 http-nio-8089-exec-6 WARN admin 1132x286x2 1y3656u 0:0:0:0:0:0:0:1 /rest/config/1.0/directoryitems/external.json [c.a.g.d.internal.impl.DirectoryImpl] Could not retrieve directory entries from application-provided gadget specs: plugin gadget 'Key{pluginKey='com.eis.jira.plugins.gadget.gadgetUtilitiesForJIRA.gadgetUtilitiesForJIRA', location='numberCustomfieldReport.xml'}' failed validation
We have checked that by removing the following code lines from the gadget.xml definition file that error no longer appears but we need to be able to use AJS. $
....
<Content type="html" view="profile">
<![CDATA[
#requireResource("com.atlassian.gadgets.publisher:ajs-gadgets")
#requireResource("com.atlassian.auiplugin:ajs")
#requireResource("com.atlassian.jira.gadgets:autocomplete")
#requireResource("jira.webresources:global-static")
#includeResources()
......
Does anyone know how we can import the Atlassian Gadgets Javascript Framework?