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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

593 views 25 15
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