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,
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.