Forums

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

JQL query to filter issues with links to other projects

pottind July 15, 2022

Hello

I am working on migrating data from Jira 8.13.10 to Jira 8.13.20. There are about 12 projects in old Jira. I need to run a JQL query on a project which will return issues with links to other projects. 

Query below returns issues in Test project which have links to issues in the same project: 

project = "Test " AND issueLinkType in (blocks,"is blocked by",discovered,"was discovered by",clones,"is cloned by","is cloned by",duplicates,"is duplicated by","has to be finished together with","has to be done before","has to be done after","is triggering","is triggered by","has to be started together with","git code review opened")

Any help is greatly appreciated. Thanks in advance.

 

2 answers

0 votes
Andrea Pannitti
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.
July 15, 2022

Hi @pottind,

if you use ScriptRunner, you could easily do this with the following JQL:

project = Test AND issueFunction in linkedIssuesOf("project != Test")
0 votes
OJo Stanley Aletil
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!
July 15, 2022

Hi

Suggest an answer

Log in or Sign up to answer