JQL to query for a linked object with certain attributes?

Greetings,

I'd like to do a JQL query to do the following, but can't see anything that stands out as meeting this need in the documentation.   Does such a thing exist - either in the native JQL or a plug-in?

I want to, for instance, build a list (via filter) of all Tests that apply to a given release; where the release value isn't an attribute in the Test object itself, but instead is an attribute of the linked New Feature object.  I want to do this because the Test object exists in a separate database (project) than the New Feature object.   The idea is to base the list of "tests that apply to a given release" not on the version of the Test objects, but on the version of the New Feature objects that are linked to them (via the "tests" link type).

So then for instance, say I have the following objects (Issues) in project ABC and XYZ (where XYZ is the project used for tracking testing):

ABC-33 is a New Feature, with Fix Version 1.0

ABC-34 is a New Feature, with Fix Version 2.0

XYZ-55 is a Test, linked by ABC-33

XYZ-56 is a Test, linked by ABC-34

I want a JQL command for a filter, to show all the XYZ-nn objects which are linked to ABC-nn objects which have a Fix Version of 1.0.   (In this case XYZ-55 would show up in the filter results, but XYZ-56 would not).

Thanks.

 

 

1 answer

0 votes

Hello,

You can not do it with the out of the box JQL. But you could do it if you had Adaptivist Scriptrunner installed. You could use linkedIssuesOf. You can read more

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_linkedissuesof

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,672 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you