The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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 Champions.
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