I have made velocity file which is being used in link dialog. But when I am trying to load the resources using
$webResourceManager.requireResource("com.jira.app.test:link.screen.resources")
or
$webResourceManager.requireResourcesForContext("test.linkScreen")
My resource file defined in web resource are not being loaded.
Here is my atlassian-plugin.xml
<!--Link screen-->
<web-item key="test.link" section="create-issue-link-types" weight="110">
<label key="test.link.webItem.label"/>
<link linkId="add-test-link">
/secure/ActionTestLink!default.jspa?id=${issueId}
</link>
</web-item>
<webwork1 key="test.link2" name="Link Test" class="java.lang.Object">
<actions>
<action name="com.jira.app.action.ActionTestLink" alias="ActionTestLink">
<view name="success">vm/linkTest.vm</view>
<view name="error">vm/linkTest.vm</view>
</action>
</actions>
</webwork1>
<web-resource key="link.screen.resources" name="test Link Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="linkTest.js" location="js/linkTest.js"/>
<resource type="download" name="linkTest.css" location="css/linkTest.css"/>
<context>test.linkScreen</context>
</web-resource>
Location -
Edit:
For people I explicity invited can you answer or invite people who knows this kind of stuff.