Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,000
Community Members
 
Community Events
168
Community Groups

Smart value is displayed as a code

Hi,

I'm using Jira automation to insert a message to the customer after an issue is considered done.

The syntax is:

 


This issue is now in DONE status and the content of the Resolution field has been set to {{issue.resolution}}.


 

The problem is that it's shown as:

 


This issue is now in DONE status and the content of the Resolution field has been set to 10022.


 

Where 10022 is the internal code Jira assign to the specific resolution value chosen.

Does anybody know what could be happening?

Thanks in advance,

M

 

2 answers

2 accepted

5 votes
Answer accepted

Hi @Manuel Carmona de la Cuesta 

Many smart values retrieve the field's ID by default, so you will need to use a smart value of {{issue.resolution.name}} to get name of the resolution.

Hope this helps!

Hi, @Callum Carlile _Automation Consultants_.

I couldn't have thought of a better result. That worked perfectly well.

Thanks so much for your quick response and interest.

Best regards,

M

No worries, glad you've got it working!

2 votes
Answer accepted
Dirk Ronsmans Community Leader Aug 23, 2022

Hey @Manuel Carmona de la Cuesta ,

An Automation rule often retrieves the "object" of such a customfield on which you can use properties to get more detail.

For example the {{issue.resolution} will default to the ID but you can get the name by just adding .name 

Here you can see the difference in output

image.png

Thank you very much, @Dirk Ronsmans

Also, for taking the time to do the tests and grab the screenshots.

Regards,

M

Suggest an answer

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

Atlassian Community Events