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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

418 views 6 10
Read article

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