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

How to filter two issuetypes using JQL?

Ana Luiza Chagas
Contributor
February 23, 2023

Hi everone!

I´m looking for ways to fetch Bugs and DevBugs together with JQL, I know they are similar categories but both are used in my project. 

I´m trying to look "project=X AND sprint in (XX) AND sprint in openSprints() AND issuetype=Bug AND issuetype=DevBug" but return a error.

Thanks!

3 comments

Comment

Log in or Sign up to comment
Somnath Patil
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.
February 23, 2023

Hi Ana,

 

You should try the following JQL :  

 

"project=X AND sprint in (XX) AND sprint in openSprints() AND issuetype=Bug OR issuetype=DevBug" .

Like Ana Luiza Chagas likes this
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.
February 23, 2023

"project=X AND sprint in (XX) AND sprint in openSprints() AND issuetype=Bug OR issuetype=DevBug" might not do what you need.

Try "project=X AND sprint in (XX) AND sprint in openSprints() AND (issuetype in "Bug", " devBug")"

Like # people like this
Ana Luiza Chagas
Contributor
February 28, 2023

Hi guys! Thanks for to help.

I found a solution similiar this: "project=X AND sprint in (XX) AND sprint in openSprints() AND issuetype in (Bug, DevBug)"

TAGS
AUG Leaders

Atlassian Community Events