for Jira Server 8.
I have a web resource module which I want to load as part of the vm in a web-panel.
atlassian-plugin.xml:
<web-panel key="bonfireGFWebPanel" location="atl.gh.issue.details.tab" weight="10">
<context-provider class="com.atlassian.bonfire.contextproviders.GreenFireContextProvider"/>
<resource name="view" type="velocity" location="/templates/bonfire/web/greenfire/greenfire-web-panel.vm"/>
<resource type="download" name="icon.png" location="includes/images/icons/capture_icon_grey_16.png" />
<label key="bonfire.gf.web.panel" />
<tooltip key="bonfire.gf.web.panel" />
</web-panel>
<web-resource key="greenfire-assets">
<resource type="download" name="greenfire-tab.css" location="includes/css/greenfire/greenfire-tab.css" />
<resource type="download" name="greenfire-tab.js" location="includes/js/greenfire/greenfire-tab.js"/>
<context>greenfire_resources</context>
</web-resource>
In my vm file, I have already tried to use:
$webResourceManager.requireResourcesForContext("greenfire_resources")
#requireResource("com.atlassian.bonfire.plugin:greenfire-assets")
Both of the above ways do not work. Neither the css, nor the js seem to be applied on the page.
A push in the correct direction would be helpful.