Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get url to batched resource file?

Dmitrii April 28, 2022

I added a web resource. Now I need to add this image from the web resource to the servlet page.

I found a very long url that consists of hashes and looks like this:

s/d41d8cd98f00b204e9800998ecf8427e-CDN/glyc89/815001/e75a004b2378217a9317e75de5991f26/24afe0262de43a194be56eb5fcd54e7a/_/download/contextbatch/js/projectx,-_super/batch.js

I need to get the path to my files in the code so that I can include them on the page, for example as an image.

How to do it?

1 answer

1 accepted

2 votes
Answer accepted
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 28, 2022

Hi @Dmitrii 

Batching of JS/CSS files is a mechanism used by Jira to (among other) decrease the amount of requests made from the browser to the backend server.

You won't be able to refer directly to a batch.js file as the full path would often change.

Refer to https://developer.atlassian.com/server/jira/platform/web-resource/ if you are developing a Plugin for Jira.

For the future, in case help will be needed on development related issues please contact the resources you find in https://developer.atlassian.com/server/jira/platform/get-help/.

Specifically:

 

Kind regards,
Thiago Masutti

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events