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
4,368,737
Community Members
 
Community Events
168
Community Groups

Jira Server - add image - E-mail template

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

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.

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

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

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.

Suggest an answer

Log in or Sign up to answer