I'm trying to perform a transition validator, If the resolution on the screen is 'Done', then the Time Entered needs to be above zero. I entered this condition in my field required (JWME) validator:
(issue.timeSpent != null && issue.resolution.name == 'Done') || issue.resolution.name != 'Done'
meaning, if the resolution (as set on the transition screen) is Done and they have not entered time, they need to on this field, OR, if the resolution from the transition screen is another value, I don't require time entry.
I'm thinking I'm getting the value of issue.resolution.name from the issue rather than from the transition screen based on how this runs in a test.
I did find in JWME an example syntax that I'm curious about. it was: !!issue.customfield_10202 && issue.customfield_10202 > 0
What does the !! before issue do? Does that point to the transition screen value?