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, team ’25 europe, early bird extension, conference discount, barcelona, hybrid event, AI teamwork, early bird pass, digital access, collaboration conference, atlassian events, register now, developer conference

1 week left to save on your Team '25 Europe pass

Still thinking about joining us for Team '25 Europe? Early bird has been extended for just one week! Now’s the time to lock in your lowest rate. Use code TEU25COMM-20 to save 20% at checkout. Hurry, this only lasts for 1 more week.

Learn more
AUG Leaders

Atlassian Community Events