Hi,
I have this error popping up on a very simple conditional block in a condition for the post-function Set issue fields post-function.
Here is the conditionnal block
{% if issue.fields.customfield_10287.value in ["value1", "value2"] %}
true
{% endif %}
When I test this tiny script against an issue it works perfectly. But I cannot save the post-function, the error "Did you forgot to wrap the expression in double curly braces" occurs.
The customfield is a Select List (single choice) and issue.fields.customfield_10287.value returns a string.
I have tried including braces as such {{ issue.fields.customfield_10287.value }} but then the script just does not work at all.
Did any of you already faced this "syntax" issue?
Thanks.
that looks like a bug...
But in your case, there's a simple workaround:
{{issue.fields.customfield_10287.value in ["value1", "value2"]}}
which already returns true or false (you don't need the if block at all)
Indeed, thanks a lot David.
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.