Forums

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

JQL filter for specific issue status

Zahid Hasan
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!
November 24, 2021

I have a board that contains only tasks and sub-tasks. I would like to apply a filter that would exclude any task in "New" status but include all Sub-Tasks in "New" status. Any idea how to achieve this?

1 answer

1 vote
Nic Brough -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.
November 24, 2021

The basic query for this could be done in several ways, but the most obvious one is simply:

Status = New and issuetype != task

But you might want to be a bit more clever/flexible and use

Status = New and issuetype in subtasktypes()

Zahid Hasan
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!
November 24, 2021

Thanks a lot for the quick follow up! I've tested your suggestion and it works. Although I might not have clearly mentioned my requirement. Currently this filter is bringing in only sub-tasks in New status. How do I include all the other status? 

I'm working with the following status: New, Ready, To Do, Ready For Review, In Process. If the status is New, then I only want to see sub-tasks (no Tasks) but for all other status (Ready, To Do, Ready For Review, In Process) I want to view both Tasks and Sub-Tasks. Hope I this makes sense. 

Nic Brough -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.
November 24, 2021

To get other status in, either don't filter by it at all, or give it a list - Status in (New, Ready, In progress) for example.

Like Zahid Hasan likes this

Suggest an answer

Log in or Sign up to answer