JQL query to return issues without parents

Christian Selbrede
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 26, 2012

I want to write a JQL query that doesn't return any Sub-tasks. We have setup many different Sub-task types.

Basically, how do you do something like this?

Project = Test AND issue in notASubtask()

Is there an easy way to check in JQL if an issue has a parent?

When I run this JQL Query:

project = Test and parent = null

JIRA tells me:

"the field 'parent' does not support searching for EMPTY values."

1 answer

1 accepted

4 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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 26, 2012

Try this:

project = TEST and issuetype in standardIssueTypes()

Serhii Riabovil July 27, 2017

Good suggestion, but is there any way to find orphaned sub-tasks?

Like Sebastien Samson likes this
Gustavo Chaves February 27, 2018

I think this page is what you want.

Michael Yu November 10, 2020

@Jobin Kuruvilla Thank you very much. It's useful for export parent id issue type.

Suggest an answer

Log in or Sign up to answer