Customising email body in JIRA automation

Galyna Safonova May 8, 2024

Hi all,

I'm trying to create a notification email on status changes through jira automation. The notification works, and I'm able to reference the issue key, but not the other attributes.

Here's the rule I'm using:

UAT has been completed on the issue {{issue. Key}}
Summary: {{issue. Summary}}
Moved to {{issue. Status}}

 

And the sample email I'm getting is:

UAT has been completed on the issue DEVEX-9973
Summary:
Moved to

 

Any hints on how to fix it?

And as a secondary question, what would be the syntax to include an issue link as well?

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2024

Hello @Galyna Safonova 

Welcome to the Atlassian community!

Based on what you pasted, you have blank spaces that need to be removed.

Screenshot 2024-05-08 at 6.34.04 PM.png

Galyna Safonova May 8, 2024

Thank you, Trudy, that worked! I didn't notice it was getting auto-corrected by MS spellchecker. 

The Status value is returned as a number though. Do you happen to know how to get the name of the status?

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2024

Try {{issue.status.name}}

Galyna Safonova May 8, 2024

Easy fix! Thanks so much for your help.

Galyna Safonova May 8, 2024

Also, for any newbie like myself reading this, apparently the {} in the bottom right corner of the input window opens the list of 'smart values' and spells it out for you!

Suggest an answer

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

Atlassian Community Events