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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JIRA Plugin Development | How to import image file on velocity file.

Hi Atlassian Answers,

I'm trying to make jira plugin. I want to image file in my velocity files but I couldn't do it.

The following is my way about it. Please, tell me how to import image files.


<web-panel ...>

<resource name="view" type="velocity" location="post-to-yammer-button.vm" />

<resource type="download" name="images/" location="images/yam_btn.gif"/>




<img src="images/yam_btn.gif">


■src path


(plugin home directory is dev-posttoyammer)

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
ConradR Rising Star Jan 27, 2013

This should work:

&lt;resource type="download" name="images/" location="images/"/&gt;
&lt;img src="$req.contextPath/download/resources/PLUGIN_KEY:RESOURCE_KEY/images/yam_btn.gif"&gt;


&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;project xmlns="" xmlns:xsi=""
	&lt;description&gt;This plugin set up "post to yammer button" on issue page.&lt;/description&gt;


&lt;img src="$req.contextPath/download/resources/" /&gt;

Hi Conrad,

Thank you for your reply. I tried to modify with your advice but I couldn't work it. Where is my misstake?


&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;atlassian-plugin key="${project.groupId}.${project.artifactId}"
	name="${}" plugins-version="2"&gt;
		&lt;vendor name="${}" url="${project.organization.url}" /&gt;

	&lt;web-panel name="PostToYammerButton" i18n-name-key=""
		key="post-to-yammer-button" location="atl.jira.view.issue.right.context"
		&lt;description key="post-to-yammer-button.description"&gt;The PostToYammerButton Plugin
		 &lt;context-provider class="authe.IssueInfoProvider"/&gt;
		&lt;resource name="view" type="velocity" location="post-to-yammer-button.vm" /&gt;
		&lt;label key="post-to-yammer-button.title" /&gt;
		&lt;resource type="download" name="images/" location="images/"/&gt;
	&lt;resource type="i18n" name="i18n" location="atlassian-plugin" /&gt;


ConradR Rising Star Jan 27, 2013

Hm, I don't know. This works for me in a project-tabpanel. Did you deploy the plugin after your changes in atlassian-plugin.xml? What is the URL of the image and the return code?

Hi all, I'm facing the exact same issue. Please post, if you got the solution.

AUG Leaders

Atlassian Community Events