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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,761 views 2 7
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