Hi everyone,
I’m building a Jira Cloud Automation rule and I’m stuck on reading the value of an Assets field in a smart value condition.
Field: “[JESS] – Assets Deelnemer Afdelingen Teams”
Type: Assets (configured as a dropdown sourcing options from our CMDB)
In the standard work item field I can make it work:
I’ve tried to use this smart value to add a comment:
{{#if(equals(issue.customfield_11455.name, "Uitvoering"))}}Nieuwe aanvraag {{/}}
This works fine for standard select or text fields, but in this case it always returns error:
Unable to add comment to work item
Has anyone solved this before? How can I correctly retrieve the selected CMDB object (or its attributes) from an Assets field in a Jira Automation rule?
Any suggestions would be appreciated!
Hi @Faroek Sweet ,
in order to retrieve a specific attribute of your asset field you should use the following approach :
{{FIELD_NAME.ATTRIBUTE_NAME}}
example :
{{[JESS] – Assets Deelnemer Afdelingen Teams.Name}}
or
{{customfield_ID.Name}}
let me know if it works,
Fabio
Hi Fabio,
Thanks for the reply. I've tried the following:
{{#if(equals([JESS] – Assets Deelnemer Afdelingen Teams.Name, "Uitvoering"))}}Nieuwe aanvraag {{/}}
And
{{#if(equals(issue.customfield_11455.Name, "Uitvoering"))}}Nieuwe aanvraag {{/}}
Unfortunately it didn't yield any result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.