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

nick magers April 4, 2017

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

0 votes
nick magers April 5, 2017

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