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

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, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events