Hello, while in Jira Cloud, using Scriptrunner, I am trying to add a validator that will make the comment field mandatory on a transition, if the resolution is set to "Cannot Reproduce".
I am trying to use conditional-expressions, but I haven't been able to find the proper way for it:
issue.resolution == 'Cannot Reproduce' ? issue.comments.length > 0
Please let me know how this would need to be written.
Thank you!