Jira Server - add image - E-mail template

Christian Radwanski May 15, 2018

Goal: add logo in E-mail  notifications
Environment: Jira Server
Ticket: https://jira.atlassian.com/browse/JSDSERVER-4365

Hi there,

I have simple yet seemingly complex questions.
Where do I place my image on the server?.
How do I refer to it?.

Currently I have placed it in:
atlassian-jira/WEB-INF/classes/templates/email/includes

<img src="../includes/logo.png">  or just <img src="logo.png"> etc..


No matter what I try and how I reffer it, cant seem to include the image, but I feel I am doing it wrong. Not sure which folder is considered the root when the E-mail template page processes the HTML and CSS.

The workaround:

<img src="https://www.SomewhereOnTheInternet/logo.png"> 

However, this workarround causes extreme delays (or mail never arrives) when sending E-mail notifications and client must accept / allow the logo to be displayed (screenshot example included).

Normaly this can be fixed by embedding the logo / send it with the mail, this can be done by reffering to the image in the code directly of the server.

Unfortunately nobody has tried this approach and feel this needs to be tested, in general I feel like this should be a functionality and have a hard time why this simple business logic is not standardized in Jira.

jira_image.jpgJira_wrong.jpg

3 answers

0 votes
Evolve Integration September 23, 2022

I'm experiencing the same issue with the logo in the email from service management. I've tried multiple URLs for the image and it previews correctly in the template preview but the email never shows the image.

Evolve Integration September 23, 2022

This appears to be specific to the email user. I tried my work email vs personal email and my personal was able to view the image.

0 votes
Harry Bob
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.
August 2, 2020

Im having the same issue in 2020. Anyone managed to get this working?

Goran Dermeta February 3, 2021

You can find the logo URL in the Look and feel by right clicking the uploaded logo there.

Then update that URL in the file:

\atlassian-jira\WEB-INF\classes\templates\email\html\includes\header.vm

in line 
<img id="header-avatar-image" class="image_fix" src="https://your.website.com/some-mumbo-jumbo/jira-logo-scaled.png" width="100" border="0">

Or try deleting everything except that line in the header-container paragraph. That works for us.

Restart JIRA.

0 votes
Christian Radwanski June 15, 2018

Anyone?.

Suggest an answer

Log in or Sign up to answer