Forums

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

How to use subqueries on JQL

Filipe Dziedicz February 10, 2023

I need to search for Sub-tasks where the parent task isn't Done

In plain SQL would be something like:

'where issuetype= Subtask and status = Done and parent not in (select id from project = ED and status !=done)'

 

I tried using "not in" and the function filter= <> but with no success 

2 answers

1 accepted

3 votes
Answer accepted
Kristján Geir Mathiesen
Community Champion
February 10, 2023

Hi @Filipe Dziedicz 

Pretty sure you can't do this with out-of-the-box Jira JQL. You will need 3rd party app to do this.

Best,
KGM

Filipe Dziedicz February 10, 2023

Thanks for the reply, Is there any that you would recommend ?

Kristján Geir Mathiesen
Community Champion
February 10, 2023

Well, I know that ScriptRunner can do this, see here for example. Might be others out there too. Btw, I am not affiliated with ScriptRunner, just so you know :)

Please mark the answer correct if you are satisfied with it.

Thanks, good luck, and have a great weekend,
KGM

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.
February 10, 2023

Hi @Filipe Dziedicz

I’m Maurício, a support engineer at Digital Toucan and I’m here to help you.

Unfortunately, using JQL of Jira, you’ll not be able to do it.

In the app where my team works, JQL Search Extensions for Jira, you can use this query to find all your subtasks whose parent is not done.

issue in subtasksOfParentsInQuery("status != done")

Please contact our support if you have any other questions about this query. 

We’ll be happy to help you!
Best regards,
Maurício

Suggest an answer

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

Atlassian Community Events