Forums

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

How do I find issues linked to a certain issue?

Toby Moore
Contributor
May 18, 2020

Hi all,

Ive searched around and cannot find an answer for this. I want a JQL query to find all issues linked to a certain issue, I can find everything with a linked issue type using

issueLinkType = "is an NWR Child of"

But what I want to do is something like

issueLinkType = "is an NWR Child of" WHERE linkedissue = ABC-123

Not sure how to do this though? Any thoughts would be great.

thanks,

 

3 answers

2 votes
Jack Nolddor _Sweet Bananas_
Atlassian Partner
May 18, 2020

Hi Toby,

You have a few of alternatives here depending of your requirements.

 

Using standard Jira features you will be able to search for issues linked to a given issue using the Advanced Search feauture.

issue IN linkedIssues(SRC-123)

 

However, If you need to retrieve linked issues dynamically depending of source issue fields / attributes, this cannot be achieved using standard features on Jira, you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:

 

1) Extract a list of issues that are linked to any 'Open' Bug:

issue IN linkedIssuesOf(' status = Open AND type = Bug ')

(*) Note that this is just an example, you must tune above query to fit your needs.

 

Using this app you can also query other issues relations, check:

 

References:

Bogomil Shopov
Contributor
February 13, 2025

Thanks!

1 vote
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 18, 2020
0 votes
Carlos Uriostegui Garcia
Contributor
May 18, 2020

Hello @Toby Moore 

There are different kind of links, in my below code section you could see a code that counts the issuelinks and then it could print any issue if required but I commented that section.

This is in a for loop so it will perform this till all issues are being printed/counted or classified.

image.png

Line 1: This is going to happen anytime for each issue in the response (I'm getting a response with more than one issue and each issue could have linked issues)

Line 2: I'll print the issue key  (The list of issues I got will be printed one by one)

Line 3: I'll count the linked issues for each issue contained in the response (firs loop), Once I printed the issue the links will be counted for this.

Output example:

KEY-1
  Total issues: 15

Last Line: I restart the issue counters, and the loop continues.

Suggest an answer

Log in or Sign up to answer