Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Validation on assignee != currentUser doesn't seem to work

Eclipse Trading
Contributor
August 26, 2014
In JIRA transition, I have added the following in simple script validation, so people won't assign to themselves for the next state (i.e. code review) issue.assignee != currentUser but this doesnt work, it doesnt check at all.. why is that? My JIRA version is 6.2.7 and ScriptRunner version is 2.1.17

4 answers

1 accepted

1 vote
Answer accepted
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.
August 27, 2014

They are different types of users, you will need to use:

issue.assignee?.name != currentUser?.name

0 votes
Eclipse Trading
Contributor
August 27, 2014

0 votes
Eclipse Trading
Contributor
August 27, 2014

Pls see above. It is worth to understand why the following works:

issue.assignee != originalIssue.assignee
 
I cannot assign to the issue's original assignee
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.
August 26, 2014

Should work fine, can you post a screenshot.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events