I have a ticket with the customfield_10448 set to: Production
And then an automation rule having an action trying to set another field depending on the comparison of this field's value with a string:
Environment : {{issue.customfield_10448.value}}
{{#if(equals(issue.customfield_10448.value, "Production"))}}
MEP
{{/}}
Can someone explain me why this code only output that:
Environment : Production
and not this:
Environment : Production
MEP
???
Of course, a hint at how to fix it will be much appreciated!
Some things to check for this symptom would be:
Kind regards,
Bill
Well, I went around by using a "Create variable" action, naming it envSV and assigning it {{issue.customfield_10448.value}}.
Then the modified code worked:
{{#if(equals(envSV, "Production"))}}
MEP
{{/}}
Output : MEP
Looks like some review of Jira smart values for conditional logic should be done by developers.
And I'm not talking only about the poor documentation...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And of course, as it's only a workaround, I can't deem this answer acceptable ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jérôme RAVIER ,
is it required to use the advanced (json) here? Can you not just use the If/else condition?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.