Script Runner block reporters from transition

srinivasa_pudi August 6, 2014

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

1 answer

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2014

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

Suggest an answer

Log in or Sign up to answer