Forums

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

How to filter all issues in Project1 that have links to Project2

Mike Shkolnik
Contributor
April 5, 2018

I tried:

project = Project1 AND linksIssueProject = Project2

But this resulted in the issues from Project2, not Project1. I also tried reversing this query:

project = Project2 AND linksIssueProject = Project1

and got no results. What am I doing wrong?

Even better would be to specify issues in Project1 that have an "implements" link type to issues in Project2 

1 answer

1 vote
Knut Arne Ristebråten
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2018

Hi,

Expect you are using JQL Search Extension addon for the JQL?

Their documentation here got some search examples: https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/3375124/JQL+Reference+Cloud

I am not familiar with that addon, but looks likes "linksIssueProject" only filters linkedissues to the project mentioned.

I was able to generate the JQL in Scriptrunner though, the mentioned JQL returns only issues in TEST2 that are linked from TEST1

project = TEST2 AND issueFunction in linkedIssuesOfRecursiveLimited("project=TEST1",1)

For query to limit specific link direction (use 'hasLinkType' for Link type instead of 'hasLinks'): 

project = TEST2 AND issueFunction in linkedIssuesOfRecursiveLimited("project=TEST1",1) AND issueFunction in hasLinks("Relates to")

 

Hopefully someone else can answer for the JQL Search Extension addon.

Mike Shkolnik
Contributor
April 6, 2018

Thanks Knut. I might request scriptrunner at some point - we had it at a previous company so most of my search knowledge is based around it. I'm new to JQLSE. I worked around the problem by using "parentEpic in" and listing all 17 of the parent epics. Kludgy, but it works. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events