I am trying to create a Scriptrunner Validator to prevent the transition of an issue if the component field does not have the value "Red" or "Blue".
I can check that there is at least one component using
I've tried lots of different syntax around checking i
issue.components.includes("Red")
but I can't seem to get this right. Can anybody help please ?
Hi @Rees_ Ian
did you try to log the result of issue.components?
I could imagine that the result is an object and the attribute is ‚name‘.
So I would suggest the following steps:
Please let us know if this helps.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.