Hi all,
Can I get a Gadget ID , or Does some methods support this function?
Thanks.
Don't know if this 5 years old question is still actual
From within the JIRA gadget (OpenSocial one - i.e. pre 7.x JIRA) you can use this:
var gadget = AJS.Gadget({ ... view: { ... template: function (args) { ... var gadgetId = this.getPrefs().getModuleId(); ... } } ... });
From within the server side consider use DashboardService:
https://developer.atlassian.com/static/javadoc/gadgets/1.0.3/reference/com/atlassian/gadgets/dashboard/DashboardService.html
It looks like you're new here. Sign in or register to get started.