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
They are different types of users, you will need to use:
issue.assignee?.name != currentUser?.name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should work fine, can you post a screenshot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.