jira plugin web-resources work in atlas-run but not server

The plugin I created works in atlas-run (atlassian-plugin-sdk-5.1.10) specifically for the .js .css resources. I have copied them to a jira server 7.3.3. and get errors as the resources cannot be found.

This is an example of the atlas-run resource

http://127.0.1.1:2990/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/62ec8t/73014/b6b48b2829824b869586ac216d119363/1.0/_/download/resources/jira-gadget-tutorial-plugin:my-macro-resources/jquery.dateFormat.js

 

This is what I see on the jira server 

http://lpi-jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/sx1ssg/73014/b6b48b2829824b869586ac216d119363/1.0/_/download/batch/jira-gadget-tutorial-plugin:my-macro-resources/jira-gadget-tutorial-plugin:my-macro-resources.js

I can see on the server my-macro-resources.js contains a collection of all the seperate js files inside it but how can I reference it. On the server there is now reference to jquery.dateFormat.js

 

1 answer

I added -Dplugin.webresource.batching.off=true to my server startup and my gadget now sees the resources correctly.

 

Can anyone please point out how to access batch mode resources when it is enabled in Jira server?

 

Thanks

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,308 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