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.
Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.
Get Certified! ✍️Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.