Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JQL to find tickets with linked issues of a specific issue type

Jay Rajaram January 30, 2022

We have a requirement to build a report/dashboard to get data on all the tickets that does not have linked issue of certain issue type.

eg. We need list of Incident tickets that doesn't have any Problem tickets linked to it.

Please assist

4 answers

1 vote
Ankit Srivastava
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 31, 2022

Hi @Jay Rajaram 


You need the third party add-on app ScriptRunner for Jira.


We need to use the nested filter here to fetch the required result:


Project = xyz and issuetype = Incident and  issuefunction in linkedIssuesOf("project = xyz and issutype != Bug")



Hope this will help.

Regards,
Ankit Srivastava

1 vote
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 30, 2022

@Jay Rajaram 

Not possible with inbuilt Jira using JQL

Scriptrunner add-on have advanced JQL Function search

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html

Thanks,

Pramodh

0 votes
Ranjan Sahabandu
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!
November 12, 2023

Use below as below functions will not work in cloud version and may need different payment.


issue in( linkedIssues(Key)) and issuetype in (bug. Story)

0 votes
mauricio.groth
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 29, 2022

Hi, @Jay Rajaram 

As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.
With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic, look beyond standard Jira.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions

You can use this query to find all your Incident tickets that don’t have any Problem tickets linked to them.

 

issue in linkedIssuesOfQuery("project=TestProject and issuetype != Problem") and issuetype = incident

 

 

Check out the documentation for more examples.
I hope this helps!
Maurício

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events