I'm writing an external gadget without a plugin. I got some basics down and figured out how to do stuff completely manually. However, I would like to take advantage of some of the built-in API from the AJS object.
The problem is that I don't seem to have access to it. I can cheat I think and do parent.AJS and grab it from I guess the dashboard page, but that doesn't seem right.
BTW, this gadget is for internal us and I'm assuming it will just be used within a JIRA dashboard.
I'm finding it hard to find good documentation on these external gadgets. It seems like most stuff is based on plug-in based gadgets. Is there a hidden resource somewhere that I'm missing?
Community moderators have prevented the ability to post new answers.
Provided that the gadget is hosted on the same host (so to speak), this is merely a matter of accessing the AJS object on the parent from within the gadget iframe e.g.
window.parent.document.AJS
If you're then calling something back in the iframe, you'll have to do, erm...
document.getElementById('gadgetIframeId').contentWindow.someFunction()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.