Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

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

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;


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.

Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

34 views 1 3
Read article

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