I would like to create a JIRA gadget for a dashboard which displays a graph not currently available. I have looked through thousands of out of date pages from Atlassian. I have downloaded their examples and tried to run them. The most recent example I can find is this: https://bitbucket.org/atlassian_tutorial/jira-days-left-in-version-gadget
When I run this example it looks like this:
I am sure that this is not correct. The documents call out that they may be out of date. The skeletons project created with the tools create different xml tags than the examples. The documentation must have been lost at see.
If someone could point me to a working example with the latest version of JIRA, I am confident that I can massage it to do what I need. Here are some observed differences. The documentation gives these tags in atlassian-plugin.xml
<resource type="i18n" location="i18n/i18n" name="i18n" />
<rest key="tutorial-gadget-rest-resources" path="/tutorial-gadget" version="1.0">
<description>Provides the REST resource for the project list.</description>
The default tool gives these tags.
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="myPlugin2"/>
<!-- add our web resources -->
<web-resource key="myPlugin2-resources" name="myPlugin2 Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="myPlugin2.css" location="/css/myPlugin2.css"/>
<resource type="download" name="myPlugin2.js" location="/js/myPlugin2.js"/>
<resource type="download" name="images/" location="/images"/>
<context>myPlugin2</context>
</web-resource>
</rest>
I have found https://developer.atlassian.com/server/jira/platform/web-resource/
which is riddled with vague conditional version logic.