Forums

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

How can I write a JQL query for Epics with multiple parameters?

Holly Schomann
Contributor
July 5, 2022

Can I write a JQL query to filter for all Epics that have a status of 'To Do', AND 'In Progress' AND any epic whose status was marked as 'Done' in the past 30 days?

Is it possible to retrieve both of these groups in one JQL query?

Appreciate your help!

 

1 answer

1 accepted

2 votes
Answer accepted
Sreenivasaraju P
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 5, 2022

Hi @Holly Schomann , 

Yes. you can do this with JQL.

You can try with below query.

issuetype = epic and (status in ("To Do", "In Progress") or (status = Done and status changed AFTER -30d))

Holly Schomann
Contributor
July 6, 2022

Thank you so much for your help!  This almost works. For some reason I am now getting non epic tickets if they have changed in the past month?

Sreenivasaraju P
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 7, 2022

try below query. 

(issuetype = epic and status in ("To Do", "In Progress")) or (issuetype = epic and status = Done and status changed AFTER -30d)

Holly Schomann
Contributor
July 7, 2022

This worked!!! You are a genius!!  Thank you thank you!!

Holly

Suggest an answer

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

Atlassian Community Events