Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Smart value is displayed as a code

Soporte Atl August 23, 2022

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

6 votes
Answer accepted
Callum Carlile _Automation Consultants_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2022

Hi @Soporte Atl 

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!

Soporte Atl August 23, 2022

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

Callum Carlile _Automation Consultants_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2022

No worries, glad you've got it working!

4 votes
Answer accepted
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2022

Hey @Soporte Atl ,

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

Soporte Atl August 23, 2022

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
AUG Leaders

Atlassian Community Events