How to add validator or condition on my jira Workflow using script runner plugin to prevent reporters to perform a transition.
Currently Im using JRA 6.2.7 , My script is ,
currentUser != issue.reporter , But it failing to perform this condition. Please help
Can you try this:
import com.atlassian.jira.user.ApplicationUsers currentUser == ApplicationUsers.from(issue?.getReporter() as User)
I'm surprised this isn't affecting more people...
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.