Forums

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

How to run validator on Linked Issue Custom field value (Select cascading field)?

Lokesh Singh Sisodia November 12, 2022

I want to ensure that linked issues (From different Projects) are for the same client or not.

 

I have a common custom field in both issue tickets and it is cascading select list type custom field.

 

I am using the below JIRA  expression, but it is working on the first value only. my custom field has two dropdown value.

 

issue.customfield_10026.value == linkedIssue.customfield_10026.value

1 answer

1 accepted

2 votes
Answer accepted
Sayed Bares _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2022

Hi Lokesh,

You are comparing only the parent fields not the children.

To fix it you'd need to compare the whole field values including both parent and child so you need to use something like this:

issue.customfield_10026 == linkedIssue.customfield_10026

Hope it helps!

Lokesh Singh Sisodia November 13, 2022 edited

@Sayed Bares _ServiceRocket_  Thanks for the insight... I added the child value also in the expression and it worked.

issue.customfield_10026.value == linkedIssue.customfield_10026.value &&
issue.customfield_10026.child.value == linkedIssue.customfield_10026.child.value

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events