Hello all!!!
I have problems using JMWE..
I want to add a condition where the Components should be "Homologación" and Labels should be "MT" in order to transition to next status.
I found in documentation the following expression
{{ issue.fields[
"Labels"
] | find(
"MT"
) !=
null
}} btu when testing tit from JMWE it shows me the following error
There was an error during the execution of your Jira expression
Jira expression failed to parse: line 1, column 2: IDENTIFIER or } expected, { encountered.
What should I change? and If I want to add a second condition which is the and operator used?
Thanks in advance
Ro
the syntax is actually described on the "Issue Fields" help tab at the bottom of the editor. The syntax for Conditions and Validators is different from that of Post functions.
In your case, you want this:
!!issue.components && issue.components.some(it => it.name == "Homologación") && !!issue.labels && issue.labels.includes("MT")
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.