We do not want ticket creator/reporter to be able to add themselves as approver in the "Approvers" user picker(multiple users) field in JSM.
I checked somewhere that this could be possible using a scriptrunner validator in the create transition but I am not sure how to write the script.
I tried using the script below but it failed.
issue.reporter.username != cfValues["Approvers"].username