Terminology: On this page and its child pages,
Here is a list of all entries in the cookbook, plus the first few lines of content. Click a link to see the full text for each entry.
Place the gadget in the 'JIRA' and 'Charts' categories, include two userprefs and change the gadget configuration field:
This will add a reload icon to the footer of the gadget and an auto-reload option to the config screen:
Use the following code in your view template function:view:{
Enable the onResizeAdjustHeight option on the view object:view: {
The framework wraps the OpenSocial gadgets.io.makeRequest method with the standard jQuery interface http://docs.jquery.com/Ajax/jQuery.ajax. You should write code as if you were just using the jQuery interface. For example:AJS.$.ajax({
Enable the onResizeReload option on the view object:view: {
Use the framework and include the views feature:<Require feature="views" />
Include the isConfigured userpref defaulted to 'false':
In addition to our full list of features, below is a summary of the features used by the Atlassian Gadgets JavaScript Framework. It is safest just to include all of them:
The framework requires the inclusion of the following resources:
It is possible to have the theme dynamically adapt to the space available with some JavaScript like this:action: ...
Specify the appropriate features as 'required' in your gadget XML, include the necessary resources in the CDATA section, and use the useOauth parameter when constructing your gadget:
Use the gadget object API for createCookie, readCookie and eraseCookie:view: {
There are a couple of UserPref values that the framework can use to add functionality to the gadget:<UserPref name="isConfigured" datatype="hidden" default_value="false" />
Using the Atlassian Gadgets JavaScript Framework
Gadgets and Dashboards Documentation
Rate this page: