Atlassian Gadgets Javascript Framework problems in JIRA 7

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">




Does anyone know how we can import the Atlassian Gadgets Javascript Framework?

1 answer

0 votes
Volodymyr Krupach Community Champion Mar 22, 2017

The old "gadget" tag and associated with it approach is not supported since JIRA 7.1.x. Please see how to convert or develop a new gadget.

Thank you @Volodymyr Krupach for your response.

But in the link it says "If you are replacing a gadget with a dashboard item for your add-on, do not modify the existing OpenSocial gadget code . This provides you with a fallback, in case something goes wrong with your dashboard item — you can simply turn off the add-on module for the dashboard item and the old OpenSocial gadget will render instead."

And I know plugins for JIRA 7.1.x and higher with gadget modules and it works. But I don't know how.

Best Regards

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

973 views 5 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot