Our JIRA instance is closed off from the internet, and I ended up having to store our logo asset on the server itself. The problem is that I can't use the absolute reference anywhere.
Any support on this it would be great.
What I am using inside my email custom notification code is :
"<img src=\"opt/atlassian/jira-lib/image.jpg\" alt=\"img\" width=\"100\" height=\"40\"/> "
I clicked on my jira logo (the one in the top left corner) and it had path like this:
http://MYJIRA/images/icon-jira-logo.png
so i found out where the logo file is located, for me it was
/opt/jira/atlassian/jira/atlassian-jira/images
so i just threw my file there and added it like this
(i didn't send the email, but preview showed the file so I fell positive)
<img src="http://MYJIRA/images/myTestFile.png" alt="img" width="100" height="40">
Hello Ilya, you coming to save me on pinch is amazing. Can you plese tell me if access the reference from /opt/jira/atlassian/jira/atlassian-jira/images OR are you doing it by referencing the HTTP URL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just searched my jira folder for icon-jira-logo.png, if you have jira installed on linux there's sure some console comand to do it. That's how I got that path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So is that using
<img src="http://MYJIRA/images/myTestFile.png" alt="img" width="100" height="40">
or by using the /opt/jira/atlassian/jira/atlassian-jira/images ?
Sorry, but I just want to make sure.
And if I want to access the server instance directly, what would you say would be the best to do this inside the
<img src=" .... ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Images that are in a special "images" folder (the one where icon-jira-logo.png is) can be accessed by path URL http://MYJIRA/images/myTestFile.png
so you need to find that folder and reference images with "default" method
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, going for http://MYJIRA/images/myTestFile.png won't work. Our instance is protected. If I access in a normal browser the $baseurl/images/myTestFile.png it will work. But in the email, apparently I think it might be the cause given that the base URL does not contain www as well, the link is always broken.
Is there no other way other than doing it like using: http://MYJIRA/images/myTestFile.png?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So if I wanted my img src to go for: /opt/jira/atlassian/jira/atlassian-jira/images, the path of the server directly, how would I have to go about it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah, guess I was too extatic about finding the solution so fast
I feel like you can't do it exactly like you intend, because it won't automatically attach it to the message anyway.
so you either need to upload it to some server that can be seen from both in and out of your company and then do src stuff with url, or do some encodeBase64 magic (or CID appending) as described here:
https://medium.com/@emailmonks/top-expert-tips-on-how-to-embed-images-in-html-emails-4f13b3784472
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried with base64 encodding but the support for that is rather ... disastrous. I haven't tried CID appending yet. Hey thank you for quickly replying to my question! Really appreciate it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.