Hi Guys,
After update my plugin (gadget) I see some errors on the console:
jira.webresources:almond.js:6 Uncaught Error: jira/moment/moment.jira.i18n missing wrm/data(…)
jira.webresources:almond.js:6 Uncaught Error: jira/field/issue-picker missing wrm/context-path(…)
jira.webresources:almond.js:6 Uncaught Error: jira/autocomplete/issue-autocomplete missing wrm/context-path(…)
I have try fix problem and add this:
<web-resource key="ResourceCommonWithOtherGadgets" name="Common Resources for My Gadgets" state='enabled'>
<dependency>jira.webresources:jira-fields</dependency>
<dependency>jira.webresources:global-static</dependency>
<context>atl.general</context>
</web-resource>
but it's not helping.
How can I solve this problem? Thanks for any tips!
Regards
Mik
Community moderators have prevented the ability to post new answers.
Since JIRA 7.1.0 the "gadget" plugin module is gone and for JIRA higher than 7.0.0 you have to use new "dashboard-item" module. Please check this: https://developer.atlassian.com/jiradev/jira-platform/guides/dashboards/guide-building-a-dashboard-item-for-a-jira-p2-add-on.
So I assume that all gadget connected JavaScitpt AMD modules are gone as well.
You may want to check my Universal Gadget for JIRA sources or sources for Cloud and Server Atlassian Common Code project. For Cloud and Server Atlassian Common Code I published working Cloud and Server example addons but they are under approval. Meanwhile please check the docs: http://csacc.vkrupach.com/.
Other way for the quick start is to take as a start point one of the gadgets that are in JIRA sources.
Dear all,
I just had the same issue after upgrading to Jira 7.2/7.3. Finally I got rid of the error messages by reordering the #requireResource statements in my gadget.xml.
Last days had been quite frustrating for me: I studied Atlassian-Aswers posts and found several times, that gadgets are "gone" and this would be the reason of the error messages. It was requested to switch to dashboard-items. At the same time this page explains, that "Dashboard items will eventually replace gadgets in JIRA". Then it even is explicitly recommended to keep orginial code as a fallback.
Tutorials for gadget plugins are only valid for JIRA 4/5, but there is no detailed explanation on how open social gadgets can be turned into dashboard items. In case I missed some documents here, pls give me a hint. I fully understand that SW updates can cause backward compatibility, but in this case documentation + support is confusing.
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Volodymyr. So It's looks at I have to convert my plugin from "Module" to "dashboard-item".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mik,
Probably from from "gadget" module to "dashboard-item" module .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. This is my requires
#requireResource("com.atlassian.gadgets.publisher:ajs-gadgets")
#requireResource("com.atlassian.jira.gadgets:jira-global")
#requireResource("com.atlassian.jira.gadgets:autocomplete")
#includeResources()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have "require" for these AMD entries in your JavaScript?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.