Hi,
I want to block the transition when the two user picker fields are same. But the jira expression seems always be wrong.
issue.customfield_12702[0].accountId != issue.assignee.accountId
It will always show this:
Evaluation failed: "issue.assignee.accountId" - Unrecognized property of `issue.assignee`: "accountId" ('accountId'). Type null does not have any properties
Can anyone help me ?
Tks in advance.
Hi @Lily Wang ,
what is the type of custom field customfield_12702? Single or multi-user picker?
If it's a Multi-user picker, then the right expression is:
!issue.assignee || !issue.customfield_12702 || !issue.customfield_12702.some(it => it.accountId == issue.assignee.accountId)
If it's a Single-user picker, then the right expression is:
!issue.assignee || !issue.customfield_12702 || issue.customfield_12702.accountId != issue.assignee.accountId
Hi Lily,
Where are you trying to execute the code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register todayOnline 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.