Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,508
Community Members
 
Community Events
184
Community Groups

how do i exclude a status on one issue type only in a filter query

i want to be able to filter out closed and verified status on only bugs. this is my current filter.

project = XXXX AND issuetype in (Bug, Epic, Task, "Bug (Sub-Task)", Sub-task) AND "TYP: Team[Dropdown]" = "XXXXXX" ORDER BY Priority DESC
Ranking

Any advice how to do this ?

4 answers

3 accepted

3 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 10, 2021

You probably want to add a clause for 

and not (issuetype = Bug and status = verified)

The brackets here are critical, if you miss them when adding that to your query, it won't do what you expect.

I think I'd probably start with:

project = XXXX AND issuetype in (Bug, Epic, Task, "Bug (Sub-Task)", Sub-task) AND "TYP: Team[Dropdown]" = "XXXXXX" and not (issuetype = Bug and status = verified) ORDER BY Priority DESC
Ranking
3 votes
Answer accepted
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 10, 2021

Hi @Joakim Wöntner 

 

You need to use OR in your query. It should looks something like this:

project = XXXX AND ((issuetype in (Bug) and stastus not in (Closed, Verified)) or issuetype in (Epic, Task, "Bug (Sub-Task)", Sub-task)) AND "TYP: Team[Dropdown]" = "XXXXXX" ORDER BY Priority DESC
Remember to use brackets to "close" OR. Wihtout that you will get more issues than you expected.

FYI:  typo - stastus not in (Closed, Verified)) 

2 votes
Answer accepted
Grigory Salnikov
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.
Nov 10, 2021

Hi @Joakim Wöntner 

Try something like this:

project = XXXX AND ((issuetype in (Epic, Task, "Bug (Sub-Task)", Sub-task) OR (issuetype = Bug AND status not in (Closed, Verified)) ) AND "TYP: Team[Dropdown]" = "XXXXXX" ORDER BY Priority DESC

If I got the idea right 

FYI:  typo - stastus not in (Closed, Verified))  - (sorry meant for above reply)

Thanks guys got the bracket thing now :) thats how you do the link.

Grigory Salnikov
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.
Nov 10, 2021

You are always welcome!

Suggest an answer

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

Atlassian Community Events