Hello all -
We had a consultant some years ago write a few ScriptRunner transition validators, and after updating JIRA to 7.1.7 they no longer work. Unfortunately there was little to no documentation from the consultant, and not knowing how to fix or write new Groovy validators, I'm at a loss. We had two validators:
cfValues['Story Points'].toInteger() in [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]
cfValues['Actual Points'].toInteger() > 0
These allegedly worked before according to the users of the workflow in question. Any help would be greatly appreciated, I am sure to someone who knows Groovy at all can make short work of it, but I've spent hours on this and haven't been able to figure it out.
Thanks!
Hi Cristopher,
The first condition should be
def storyPoints = cfValues['Story Points']?.value as Integer return storyPoints in [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]
and the second one
cfValues['Actual Points']?.value > 0
regards
Thanos
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.