Email notification is showing Assignee ID instead of name

Jonathon F_ Lacerda March 19, 2024

Hello,

I'm trying to create a very simple automation, in which when an issue is moved to done, it triggers an email with the following information:

Subject: Card {{issue.key}} has been moved to "Done"
Content:
Card {{issue.key}} has been moved to done.
Details follow:
Responsible: [~accountid:{{issue.assignee.accountId}}]
ID: {{issue.key}}
Title: {{issue.summary}}
Description: {{issue.description}}
Created Date: {{issue.created}}

However, in the body of the email it does not fill in the Assignee's name information but rather the ID.

Also, when I add colors or other information to the description, it doesn't format properly.
Attached is an example of the email I received.

can you help me?2024-03-19_13-29.png

3 answers

0 votes
Jonathon F_ Lacerda March 27, 2024

Guys,
Could anyone help me with this question?

 

What you recommended worked, but now I have a small problem.
When a collaborator copies and pastes an image into the description field, if I leave it in HTML format, it brings the image without loading, as I previously stated, if I remove the .html from the parameter, it brings textual information about the image. Is there a way for me to disregard this in the description field, and thus just leave the image attached, for example?

 

image.png

Aaron Pavez _ServiceRocket_
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.
March 28, 2024

As mentioned, thats not supported:

https://jira.atlassian.com/browse/JRACLOUD-39464

https://jira.atlassian.com/browse/JRACLOUD-70301

You cannot email images from a Jira issue using automation or the email itself.

There should be a third-party app for that.

Regards

Jonathon F_ Lacerda March 28, 2024

Aaron,

In fact, I no longer need to send the image in the text, because as you can see, the link is already there in the attachments option.
What I would like was to send only textual information from the description field and "hide" the image information that I detailed in the previous image that I attached to the ticket.
Basically, no matter how much the user places a description in text and copies and pastes an image, for example, I disregard the image and leave only the text and thus the image will already appear in the attachment option.
It was clear?

0 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

Hi @Jonathon F_ Lacerda,

Your email shows the account id because that's what you added there. Use the following instead:

Responsible: {{issue.assignee.displayName}}

About the colours, make sure that you send your email as html and also use proper html tags if you want to apply formatting. For more details, see this html colour tutorial.

Hope this helps! 

Jonathon F_ Lacerda March 19, 2024

Walter,

The point is that it takes the default colors of the field, as well as emojis, etc.
In this case, could you suggest a way that I can format it so that the email is sent using HTML standards?

The HTML option is already parameterized.image.png

Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

Oh, ok @Jonathon F_ Lacerda - I had assumed you had put the colour tags yourself.

Yes, you can convert this to proper html by adding a converter tag to your text field like this:

description: {{issue.description.html}}

It will convert the wiki markup syntax to html for you.

Jonathon F_ Lacerda March 19, 2024

Walter,

Firstly, thank you very much.
I'm almost able to finish the configuration.
My last question is about image loading.
Sometimes there are screenshots attached/copied directly in the description field and when I receive the email the image doesn't load.
Do I need to make any other settings or pass any other parameters?

Below is how it got to me in the email.

 

image.png

Aaron Pavez _ServiceRocket_
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.
March 20, 2024
Jonathon F_ Lacerda March 21, 2024

What you recommended worked, but now I have a small problem.
When a collaborator copies and pastes an image into the description field, if I leave it in HTML format, it brings the image without loading, as I previously stated, if I remove the .html from the parameter, it brings textual information about the image. Is there a way for me to disregard this in the description field, and thus just leave the image attached, for example?

 

image.png

Jonathon F_ Lacerda March 26, 2024

@Aaron Pavez _ServiceRocket_ 

 

Can you help me with this adjustment?

0 votes
Aaron Pavez _ServiceRocket_
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.
March 19, 2024

Hi @Jonathon F_ Lacerda 

Thisis because you are using the account ID

Responsible: [~accountid:{{issue.assignee.accountId}}]

Check the user smart values

Jira smart values - users 

This one should work

{{assignee}}

The assignee of the active issue.

{{assignee.displayName}}
Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events