I'm attempting to write a Jira expression to use in Build-your-own (scripted) Validator in my workflow. I want an error message to appear during the transition, on the transition screen, when a specific Fix Version is present. I've come up with the following expression, which works correctly to return false if the Fix Version is not 16.x.x.
!!issue.fixVersions && issue.fixVersions.some(it => it.name != "16.x.x")
Result: false
Unfortunately Fix Version can have multiple values and if I have 16.1.1 and 16.x.x and I run the same expression, the result is true.
What do I need to do differently in my Jira expression to return false if 16.x.x is present at all, regardless of the other Fix Versions? Is it even possible in JMWE or is there another validator option that comes standard with Jira?