Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Email via Jira Automation

niggles20
Contributor
September 10, 2021

HI. I am trying to use Automation to send an email containing the issue summary, issue resolution and the resolution comments using the following content:

{{issue.summary}}
{{comment.body}}
{{issue.fields.resolution}}

While the summary and comments are working perfectly, I'm just getting numbers where the resolution value should be.  What am I doing wrong?

3 answers

1 accepted

3 votes
Answer accepted
Bill Sheboy
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.
September 10, 2021

Hi @niggles20 

Please try {{issue.resolution.name}} for the name of that value.

And a suggestion to help find this information faster in the future: https://jira.atlassian.com/browse/JIRAAUTOSERVER-339

Kind regards,
Bill

niggles20
Contributor
September 10, 2021

Success!  Thank you :-)

Like Bill Sheboy likes this
0 votes
John Funk
Community Champion
September 10, 2021

Hi @niggles20 ,

Maybe try {{issue.resolution.value}}

niggles20
Contributor
September 10, 2021

no luck :-(

0 votes
Olga Videc
Community Champion
September 10, 2021

Hello @niggles20 

Have you tired just {{issue.resolution}}? 

BR, Olga

niggles20
Contributor
September 10, 2021

Yes - it gave the same result of numbers.

Olga Videc
Community Champion
September 10, 2021

Hello @niggles20 

My bad this is only available for the cloud. 

The problem is that the resolution smart value is not available for the server.

But what you can do is edit the automation, here is my idea.

You add IF/Else first if the resolution is unresolved you just add that comment in the email body in the automation.

Else if the resolution is Done

Add "Resolution is Done" in the email body

Else if the resolution is "Won't Do"

Add "Resolution is Won't Do"

Your email body should look like this, example

{{issue.summary}}
{{comment.body}}

Resolution is done 

OR

{{issue.summary}}
{{comment.body}}

Resolution is unresolved

 

Resolution automation.PNG

Like Fernando Rodríguez likes this

Suggest an answer

Log in or Sign up to answer