How to query linked issues of a specific type ? Edited

Hi there,

We have an issue type called Lowlevel requirements and we link issue type stories to it. How can I create a query that lists all the lowlevel requirements in a project along with their linked story details.

LLR1 - Summary >> 

                                 STY 1- Summary 1

                                 STY 2- Summary 2

LLR2 - Summary  

 

Basically a report to show the linked issues as well any parent that is missing the links of type Story.

Thanks

2 answers

0 vote

You could use the linkedissues() function in JQL in order to search for all the issues linked to this LLR1 issue.   So for example, if your LLR-1 was the issue key, you could create a JQL search such as

 

issue in linkedissues(LLR-1)

This would return all the issues in JIRA that are linked to that LLR-1 issue.  From there you could then just adjust which columns you wanted to see in the search results to include the Summary field.  That way you could do this natively within JIRA.  Just note that this alone would not return the LLR-1 issue, just the issues linked to it.   But if that too is important to the search results, it could easily be adjusted with something like

 

issue in linkedissues(LLR-1) OR issuekey=LLR-1

Thanks Andy. I tried that already. But I'm loking for not a specific issues id. I am looking for all the LLR's for a given project and their linked stories in one query, incluidng summary and id for both LLR's as well as Stories. I couldn't achieve through the JQL.

Ah, in that case, then yes, the native JIRA JQL searching probably won't be able to do all this.   However I would recommend taking a look at a plugin to JIRA that should be able to do this.   For example the JQL Tricks plugin has a function called linkedIssuesInProject that appears it could be used to find all the linked issues on a per project basis.

It might also be possible to do this with something like Search Linked Issues or Scriptunner. However the search syntax might be slightly different for each of these plugins.

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

231 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