Forums

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

Find all link issues

Vladimir Fed January 15, 2024

I'm trying to find all the issues in project 1 in the active sprint and link issues from the sprint in project 1, but they are in other projects.

I was only able to make such a request, but it displays all issues without exception that are related to project 1

project = 1 OR (project in (2,3,4,5,6) AND issueFunction IN linkedIssuesOf(' project = 1')) ORDER BY Rank ASC

2 answers

0 votes
Nic Brough -Adaptavist-
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.
January 16, 2024

Welcome to the Atlassian Community!

I am not 100% sure that I understand "and link issues from the sprint".  Do you mean "all issues in projects 2-6 that are linked to issues in project 1's current sprint?

If so, then the problem is the first clause, and sub-clause - "project = 1" is selecting all issues in project 1, both selecting too much.

I think you probably want 

(project = 1 and sprint in OpenSprints() ) OR (project in (2,3,4,5,6) AND issueFunction IN linkedIssuesOf(' project = 1 and sprint in OpenSprints() ')) ORDER BY Rank ASC
0 votes
Umer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2024

Not sure I understand what you're looking for.

Do you want only the results to show issues that are in the current active sprint inside Project 1, which have links to issues from other sprints?

Suggest an answer

Log in or Sign up to answer