Excluding Tickets that have sub-tasks Tickets in JIRA Filter

Bryan Trummer Community Champion Jan 07, 2014

I have a user who wants a filter that would exclude tickets that have sub-tasks within them. Does anyone know of the JQL that would help produce that. I have the rest of the filter ready I just cant get it to exclude tickets that have sub-tasks in them.

2 answers

1 accepted

1 vote
Henning Tietgens Community Champion Jan 07, 2014

You can use Script Runner plugin and use the provided JQL

issueFunction not in hasSubtasks()

Bryan Trummer Community Champion Jan 07, 2014

Worked perfect Henning. Thanks I figured Script Runner had something for this but I couldn't remember the correct syntax.

did you tried like this?

issuetype not in subTaskIssueTypes()

Henning Tietgens Community Champion Jan 07, 2014

This would only exclude the subtasks itself.

Thanks Henning!! i missed that point!!

Wasn't exactly what the TO was looking for - but pertect for me smile

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

42 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you