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

resource files and plugin

Angelo Diego Crabolu Feb 11, 2013

In my search request view plugin I have a velocity template that has a reference to an xslt file i wrote, I'd like my plugin to install this xslt file automatically (ideally in "http://myserver:2990/jira/styles/)

I've tried adding a resource in atlassian-pugin.xml but I can't figure out which url to use to reference the xslt file.

2 answers

1 accepted

0 votes
Answer accepted
Boris Georgiev Feb 18, 2013


<web-resource key="xslt-resources" name="Xslt Web Resources">
    <resource type="download" name="test.xslt" location="/xslt/test.xslt"/>

vm file:

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="$webResourceManager.getStaticPluginResource("com.myplugin:xslt-resources","test.xslt")" type="text/xsl"?>


0 votes
Boris Georgiev Feb 13, 2013

You can take a look at

You can add param <param name="batch"value="false"/> and then refer to the resource using the url pattern given in the documentation:

Angelo Diego Crabolu Feb 18, 2013

Can I use the resource from the velocity template this way?

Boris Georgiev Feb 18, 2013

Yes, you can. I can provide you with some sample code for atlassian-plugin.xml and the vm file if you give me an example of what you want to achieve exactly.

Angelo Diego Crabolu Feb 18, 2013

Here is my velocity template (A modified version of the standard view issues xml) , I would like to have my xslt file instead of MYSTYLESHEET,

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="MYSTYLESHEET" type="text/xsl"?>

<rss version="0.92">



## Ensure we have no spaces around the link tag and its value. JRA-16175



#if ($rssLocale)



#if ($totalissue)

<issue start="$!{startissue}" end="$!{endissue}" total="$!{totalissue}"/>







this is the configuration in atlassian-plugin.xml

<web-resource name="xslt" i18n-name-key="" key="xslt">

<description key="xslt.description">.xslt resources for search request plugins</description>

<resource name="GroupByCategoriesEdt" type="download" location="xslt/GroupByCategoriesEdt.xslt">

<param name="batch" value="false"/>


<resource name="GroupByDeveloppeur" type="download" location="xslt/GroupByDeveloppeur.xslt">

<param name="batch" value="false"/>



I tried with <?xml-stylesheet href="$webResourceManager.requireResource("xslt:GroupByDeveloppeur")" type="text/xsl"?> but It doesent seem to work, in the console it tells me "Cannot find we resource module for: xslt:GroupeByDeveloppeur"

Thanks for your help

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

409 views 0 4
Join discussion

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