Forums

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

Jira expression - linked issue's custom field

Patrick van der Rijst
Contributor
April 14, 2022

Hi!

Is the linked issue's issue limited to retrieving the status, resolution, type, etc but no custom fields?

e.g.

issue.links
.filter(link => link.type.id == 10102) 
.filter(link => link.direction == "outward") 
.map(link => link.linkedIssue)
.every(issue => issue.customfield_10214.value == "XYZ")

https://developer.atlassian.com/cloud/jira/service-desk/jira-expressions/ 

2 answers

1 accepted

1 vote
Answer accepted
Patrick van der Rijst
Contributor
April 19, 2022

It is actually lazy loading so the return values do not contain custom fields if you don't specify them.

 

This works;

issue.links
.filter(link => link.type.id == 10102)
.map(link => link.linkedIssue)
.every(issue => issue.customfield_10277...
0 votes
Aron Gombas _Midori_
Community Champion
April 15, 2022

Are you sure that you need the ".value" at the end of the expression? I haven't tried it, but other examples look like this:

issue.customfield_10123 != "foo"

Suggest an answer

Log in or Sign up to answer