Forums

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

When we add {{issue.resolution}} in Automation rule it does not give desired output.

Nikhil Patil
Contributor
February 27, 2023

we have made a automation rule for sending mail alerts to customer regarding issue resolved. we have are adding {{issue.resolution}} in summary of mail to fetch the resolution, but it gives us output in form of code for e.g) 10000 on mail. As we are expecting the output as "Done" when the issue is resolved.

3 answers

2 votes
Omar Mohamed Fathi
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.
February 27, 2023

try this , remove the id and add the resolution id in your instance

 {{issue.[Custom Field].id}}

or 

{{resolution}}

 

and here you can find all the available smart values 

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

0 votes
John Funk
Community Champion
February 28, 2023

Hi Nikhil,

Try {{issue.resolution.name}}

0 votes
Tobias H
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.
February 27, 2023

Hi Nikhil!

What trigger do you use to get the issue?

It might be that you need to add something else, instead of just issue.
{{triggerIssues.resolution}} or {{lookupIssues.resolution}} for example 🤔

Edit: Sorry Nikhil! I didn't read your request thoroughly. I have a fix for you now.

After resolution, you need to add .name like {{issue.resolution.name}}

Tobias H
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.
February 27, 2023

@Nikhil Patil See my edit above :)

Just as you say, using {{issue.resolution}} returned the id name 10000 by default.

Screenshot 2023-02-27 at 12.16.40.png

However, adding a .name to the end of it ({{issue.resolution.name}}), will make it return the text (in this case Done) instead.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events