Child pages
  • Loading Additional Web Resources For Structure Widget

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

Skip to end of metadata
Go to start of metadata

To include a web resource (such as custom CSS or JavaScript file) on the page every time Structure Widget is displayed, use structure.widget web resource context.

Due to Atlassian SDK limitations, context-provided resources are not loaded in the Structure gadget on Dashboard or in Confluence.

Use cases:

  1. You create your own custom field and would like it to be editable in the Structure grid. The field is powered by additional JavaScript or CSS, which should be loaded on the page that displays structure.

Sample snippet from atlassian-plugin.xml:

<web-resource key="custom-field-resource" name="My Custom Field Web Resource">
  <context>structure.widget</context>
  <resource type="download" name="custom-field-resource.js" location="js/myplugin/custom-field-resource.js"/>
</web-resource>
  • No labels