Forums

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

JQL-Search: All subtasks and tasks without subtasks

Silas Pohl
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!
January 29, 2024

Hello,

 

I want to filter all subtasks and tasks without subtasks.

I don't want to see the parent jiras of the subtasks in the kanban board.

What is the search prompt for this filter?

 

Thanks in advance

Greetings

Silas

3 answers

1 vote
Charlotte Santos -Appfire-
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 29, 2024

Hi @Silas Pohl 

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, using vanilla JQL, you’ll not be able to do it dynamically.

In the app where my team works, JQL Search Extensions for Jira, you can use this query to see all sub-tasks whose parent is a Task:

issue in subtasksOfParentsInQuery("type = Task")

And you can use this one to see all the Tasks that doesn’t have sub-tasks:

type = Task AND subtasksCount = 0

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

We’ll be happy to help you!

1 vote
Mayuresh Kamble
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 29, 2024

Hi @Silas Pohl ,

Welcome to the Community!

I don't think this is possible natively in Jira. If you have Scriptrunner plugin you can use this query.

issueType = "Task" AND issueFunction not in hasSubtasks()

Regards,
Mayuresh

0 votes
Pierre Ibrahim
Contributor
January 29, 2024

Hi @Silas Pohl 

as @Charlotte Santos -Appfire- and @Mayuresh Kamble have already said, there's no all encompassing solution from Atlassian natively for your search, however if you have Scriptrunner installed, you can use the following JQL:


issuetype not in subTaskIssueTypes() and issueFunction not in parentsOf()

The "issueFunction  not in parentsOf()" is the only part requiring scriptrunner. As far as I'm aware "issuetype not in subTaskIssueTypes()" is native to JIRA.

So without scriptrunner you can get half way there.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events