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.
Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.
Learn moreOnline 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.