JS file not loading in VM file in Jira standalone

JS File is loading successfully in velocity template file when I run the plugin in development mode but when I run the jar file of this plugin in standalone Jira then JS file is not including in velocity template.

I included $webResourceManager.requireResource("${project.groupId}.${project.artifactId}:resources") in velocity template but it didn't work.

directory are as follows :

> inside resource folder

velocity template :

template/xyz.vm ---->around 4-5 vm files

resource(.js) file :


resource(.js) file in atlassian-plugin.xml file :

<web-resource name="Resources" key="resources">
    <resource name="JSFile.js" type="download" location="JSFile.js">
      <param name="batch" value="false"/>

Any help will be appreciated.

Thanks in advance.

1 answer

Whay do you need batch=false ?

If you use batch false then you need to use a method like:


This will produce a url to the resource which you can use in <script> tag

I would advice removing <paramname="batch"value="false"/> and see what will happen.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot