Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

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

Code Block
xml
xml
<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 web-resource elements in the extension declaration, thus grouping several web resources in a single widget extension.