Description
It's not possible to currently write a gadget in a Bamboo plugin for consumption in JIRA (or other gadget containers).
The problem is that the REST resource that serves up the gadget returns a 500 error to logged out users (despite that REST Resource specifying AnonymousAllowed).
For example if you request https://jira.bamboo.atlassian.com/rest/gadgets/1.0/g/com.atlassian.bamboo.gadgets.build-plan-hack/status/planStatusWithBreakers.xml you get a 500 error when you are logged out.
When shindig (from say JIRA) attempts to request the gadget XML it does not use authentication since the gadget XML is just a static XML resource that doesn't contain any data.
It seems that Bamboo has a whitelist implemented that allows REST requests for gadgets with the package com.atlassian.bamboo.gadgets (to make the gadgets shipped with Bamboo work). However this approach doesn't work if you write your own Bamboo plugin because you can't deploy 2 plugins with the same key!