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
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.