I have a [Edit: workflow transition with a] simple scripted condition in which I have placed the single word "false", yet it behaves as if it evaluated to true.
When previewing it I see this error:
Cannot cast object 'haslers(haslers)' with class 'com.atlassian.jira.user.DelegatingApplicationUser' to class 'com.atlassian.crowd.embedded.api.User'
JIRA version: v7.1.4#71008-sha1:eaa0661
[EDIT]:
This is on server, not cloud, so I wonder if the com.atlassian.<u>crowd</u>.embedded.api.User is incorrectly referencing code in the cloud codebase (because of crowd) instead of the server codebase.
Here's a screenshot of how I've configured the script.
image2017-2-14 9:8:46.png
[EDIT2]
We're on version 3.0.10 and there's no budget for getting the paid version so I guess I'll have to look at an alternative way to do this that doesn't involve script runner. (would have replied in a comment but I don't have enough points)