Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Include web resources conditionally with CDN feature support (Jira 8.3 compatibility)


After Jira DC (8.3) compatibility with CDN announcement we have faced the problem with one of our conditionally included resources that we have to convert to stateless conditioning.

There is a resource (Javascript + CSS) with a significant size (couple of MB) and significant initialization time that should be included into jira.view.issue context (page body) depending on user settings. There are couple of ways to make it CDN compatible (stateless):

  • just remove stateful condition - users who should not load the resource will have page load extra time overhead.
  • move scripts to web-panel - bad idea in any case. Script will load and initialize on any issue change in issue navigator.
  • use stateless condition - will require to include user key/id into resource URL that seem also bad. CDN will have a huge set of identical resources for each user.
  • include resource and its dependencies by small bootstrap script inserting resources tags into body - will also affect page load and probably CDN effectiveness because such resources will not bundled into batch

So is there any legal and performance efficient way to make such conditional resource include?


Alexey Stepanov | ALM Works Structure development team

1 comment

Seems this should be posted to dev community :)

Any way the solution is to calculate condition on resource URL build time and put result into URL params. The only thing you will not be able to deel with such approach is security - URL params can be modified by somebody and resource can be disclosed.


Log in or Sign up to comment

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you