JIRA 5 unable to load javascript in plugin

Ed Sattar November 13, 2013

I am unable to load javascript in plugin (JIRA 5).

<web-resource key="Customfield-resources" name="Custom Field Web Resources">
    <dependency>com.atlassian.auiplugin:ajs</dependency>
    <resource type="download" name="tutorial-jira-custom-field.js" location="/js/tutorial-jira-custom-field.js"/>
    <resource name="requirement-custom-field.js" type="download" location="/js/requirement.js">
    <context>atl.general</context>
    <context>atl.admin</context>
    </resource>
    <!-- <context>tutorial-jira-custom-field</context>-->
  </web-resource>
In vm i include
$webResourceManager.requireResource("com.example.plugins.tutorial.jira.case-type-custom-field:requirement-custom-field.js")

Cannot find web resource module for: com.example.plugins.tutorial.jira.case-type-custom-field:requirement-custom-field.js

Thanks.

2 answers

0 votes
Ed Sattar November 13, 2013

i have already used atl.context did not work for me

0 votes
Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events