I am trying to require a comment based on the value of the Resolution Field - I found in the Scriptrunner documentation a simple validator to resolve this action - however it does not work - trying to see if there is some sort of update that I am not aware to solve this issue
issue.resolutionObject?.name == "Failed QA" || transientVars["comment"]
Hey Brian,
Try something like
// if resolution is done then there should be a comment
issue.resolution.name == "Done" ? transientVars.comment : true
In that case, is safe to ignore the errors you may get in the UI, are because of the Static Type Checking
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.