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

Get URL to web-resource inside velocity template in Jira 7

andrzej_pasterczyk January 19, 2016

My plugin has some downloadable content included as web-resource. I've been using the approach mentioned at https://answers.atlassian.com/questions/15282228 for both building image and download links

So basically my setup is like

<web-resource key="WEB-RESOURCE-KEY" name="downloads">
  <resource type="download" name="downloads/" location="downloads"/>
</web-resource>
<a href="${req.getContextPath()}/download/resources/PLUGIN-KEY:WEB-RESOURCE-KEY/downloads/file.zip">Download</a>

This worked fine for a long time but now with latest JIRA 7 those URLs are exposed in different way (as far as I could see it still contains "/download/resources/" part but there is also plugin version and some hashes).

Any ideas on how to get correct URL string?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Christoph Sutter December 20, 2016

We face the same issue but we could not find a definition of the new format. Could you solve your issue?

TAGS
AUG Leaders

Atlassian Community Events