Forums

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

Search by linked issue

Martin Vali
Contributor
September 25, 2024

Hi, Would like to search issues in project A that has linked issues form project B.

Chat GPT gave following 

 

issue in linkedIssuesOf("project = ABC")

but that does not work

4 answers

1 accepted

3 votes
Answer accepted
Evgenii
Community Champion
September 25, 2024

Hi, @Martin Vali 

Welcome to Atlassian Community!

ChatGPT is slightly wrong. For Jira Cloud JQL query looks like:

issue IN linkedIssues("NTL-2")

 

Evgenii
Community Champion
September 25, 2024

Screenshot_11.png

Like # people like this
Martin Vali
Contributor
September 25, 2024

Wow - works like charm, thanks for fast answer. I already love Jira community

Like # people like this
0 votes
Kristian Walker _Adaptavist_
Community Champion
September 25, 2024

Hi Martin,

linkedIssuesOf is a JQL function provided by the ScriptRunner for Jira Cloud or Enhanced Search for Jira Cloud apps.

To use this you would need to install these apps and use the Enhanced Search page it provides.

I hope this helps.

Regards,

Kristian

0 votes
said kouzibry
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.
September 25, 2024

This is not something you can accurately achieve with standard JQL.

The closest solution I could find was linkedIssue IN projectsLeadByUser(accountId) where accountId is the id of the project lead of project ABC, this assumes project ABC can be identified using the project lead only. Meaning that user should only be project lean in that project.

Otherwise, I don't see how it can be done. What is your ultimate goal behind this ? Do you want to perform some action on these issues ?

0 votes
Manoj Gangwar
Community Champion
September 25, 2024

Hi @Martin Vali  Welcome to the community!

If you have script runner plugin installed then you can use the above function.

For that, you need to click on the apps option at the top and then click on the ScriptRunner Enhanced Search option.

Then JQL should be Project = project1 AND issueFunction in linkedIssuesOf("project = ABC")

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events