I’m attempting to create a plugin that will load a JavaScript file in all JIRA, JIRA Software, and JIRA Service Desk pages.
I’ve followed instructions at https://developer.atlassian.com/jiradev/jira-platform/building-jira-add-ons/jira-plugins2-overview/jira-plugin-module-types/web-resource-plugin-module
I’ve added a web-resource like:
<web-resource name="Resources" key="resources">
<resource name="resource.js" type="download" location="/js/resource.js"/>
<context>atl.general</context>
</web-resource>
I install the plugin, but the JavaScript isn’t loaded anywhere. I’ve even added an alert() call just to see if it isn’t named the way I was expecting, but no alert boxes are opened.
I’m assuming I’m missing something pretty simple, but I can’t seem to find suggestions online that fix the problem.
Any thoughts or suggestions? Thanks!