Widget extension module lets you add Javascript and CSS resources to the Structure widget. Your extensions will be loaded on all pages where the widget is shown. You can use the Structure JavaScript API and the Atlassian APIs in you JavaScript extensions.
Widget extension example
<web-resource key="wr-sbcolumn" name="web-resource:Status Bar Column"> <resource type="download" name="sbcolumn.js" location="js/sbcolumn/sbcolumn.js"/> </web-resource> <structure-widget-extension key="we-sbcolumn" name="widget-extension:Status Bar Column"> <web-resource>com.almworks.jira.structure.sbcolumn:wr-sbcolumn</web-resource> </structure-widget-extension>
Element |
Description |
---|---|
structure-widget-extension |
The module descriptor. |
structure-widget-extension/@key |
The unique identifier of the plugin module. Required. |
structure-widget-extension/@name |
The human-readable name of the plugin module. |
structure-widget-extension/web-resource |
The complete key of the web resource plugin module containing the Javascript and/or CSS for the extension. You can have multiple |