Page tree

This documentation relates to an older version 2.10 of the Structure Plugin for JIRA. View the current documentation home.

Skip to end of metadata
Go to start of metadata

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

  • No labels