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.
At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.
Read the story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.