I have included my JS file in my webresource atlassian XML like so in bold:
<web-resource key="jira-custom-field-example-resources" name="jira-custom-field-example Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="jira-custom-field-example.css" location="/css/jira-custom-field-example.css"/>
<resource type="download" name="jira-custom-field-example.js" location="/js/jira-custom-field-example.js"/>
<resource type="download" name="oauth-signature.js" location="/js/oauth-signature.js"/>
<resource type="download" name="images/" location="/images"/>
<context>jira-custom-field-example</context>
</web-resource>
This is how I have it included in my vm file:
<script src="oauth-1.0a.js"></script>
When I run atlas-run, I get an error because I believe it is trying to be loaded from the localhost. The error I get is:
Loading failed for the <script> with source “http://localhost:2990/jira/browse/oauth-1.0a.js”.
How can I load the JS file from the relative path. It is currently in this path:
C:\Users\nad\Desktop\DevOps\Custom\jira-custom-field-example\src\main\resources\js
I know this question was asked a long time ago, but I'm facing the same problem right now.
Can you please tell me how did you figure it out if you did?
I really appreciate any help you can provide.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.