JQL to query for a linked object with certain attributes?

John S. I'm New Here Dec 07, 2017


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).




1 answer

0 vote
Alexey Matveev Community Champion Dec 07, 2017


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


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

211 views 1 18
Join discussion

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