How to change issue export-excel header image(Logo)?

Rishab Gehlot February 13, 2015

On issues Export Excel (All Fields), Excel shows the Application logo on Header. How do I change the header with different image?

5 answers

0 votes
philleicht
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2015

Hey Rishab,

oh, sorry. I thought you were running JIRA on Linux.
In this case the following should work:
<img src="file:///C:/Program Files/Atlassian/JIRA/atlassian-jira/images/slogo1.png" width="48" height="48" border="0"> 
 
If it doesn't, it could also help to copy the image to the same folder as the searchrequest-excel-header.vm file and just use the img-tag with the relative link:
<img src="slogo1.png" width="48" height="48" border="0">

I hope this helps.

Regards,
Philipp 

0 votes
Rishab Gehlot February 13, 2015

Still no luck.

I have image file on C:\Program Files\Atlassian\JIRA\atlassian-jira\images\slogo1.png

Am i using it correctly?

<img src="/opt/atlassian/jira/atlassian-jira/images/slogo1.png" width="48" height="48" border="0">


//Rishab Gehlot

0 votes
philleicht
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2015

Hey Rishab,

you will probably have to use a variable that is known in the context in which the template (the .vm-file) is rendered; this probably isn't the case for $JIRA_INSTALL.
Depending on if you expect the path of you JIRA installation to ever change, you could simply use the complete path, as for instance (if you use the default paths): 
<img src="/opt/atlassian/jira/atlassian-jira/images/slogo1.png" width="48" height="48" border="0">

Regards,
Philipp

0 votes
Rishab Gehlot February 13, 2015

Hi Philipp,

 

How do I replace the <img src="$jiraLogo"  with Image stored at folder $JIRA_INSTALL/atlassian-jira/images/slogo1.png ?

i tried <img src="$JIRA_INSTALL/atlassian-jira/images/slogo1.png " width="48" height="48" border="0">

But on export excel header. I get this error.

image2015-2-13 14:11:52.png

 

//Rishab Gehlot

0 votes
philleicht
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2015

Hey Rishab,

this would only be possible by editing the underlying template which again is only possible on a hosted instance.
In order to do this, the following resource should give you all the info:
https://developer.atlassian.com/jiradev/jira-architecture/jira-templates-and-jsps/customising-jira-excel-output

I hope that helps!

Regards,
Philipp 

Suggest an answer

Log in or Sign up to answer