Forums

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

A filter to show all tasks that contain a sub-task?

Joe Milner-Smith
Contributor
July 11, 2023

I would like to create a filter to use on a dashboard gadget that will show all the tasks of a project that have a sub-task, and not show any tasks that don't have a sub-task. Is this possible?

2 answers

1 accepted

4 votes
Answer accepted
Sanjog Sigdel
Community Champion
July 11, 2023

Hi @Joe Milner-Smith

This is what I came up with real quick:

issuetype in subTaskIssueTypes() AND parent is not EMPTY 

This filter actually lists subtaks and in the next column of the filter results you can find the associated Tasks or stories. The result is all from simple jira queries.

But if you have the script runner enables in your jira app then below query will give you exactly you want.

issuetype = Task AND issueFunction in hasSubtasks()

abhishek_sharma03
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 11, 2023

Thanks @Sanjog Sigdel this is a good workaround, with parent issue in Summary column

Like Sanjog Sigdel likes this
Joe Milner-Smith
Contributor
July 11, 2023

Thank you, this works for me :)

Like Sanjog Sigdel likes this
Sanjog Sigdel
Community Champion
July 11, 2023

Glad it helped.

@Joe Milner-Smith @abhishek_sharma03  You are welcome.

4 votes
abhishek_sharma03
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 11, 2023

Hi @Joe Milner-Smith - Try 

project = ABCDE AND issuetype in (Task) and issueFunction in hasSubtasks()

However hasSubtasks() function is not native to Jira and is provided by Scriptrunner. As I understand this is only applicable for Jira server and DC.

BR

Abhishek 

Suggest an answer

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

Atlassian Community Events