Forums

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

Need help w/ difficult JQL

JD.Lobue December 29, 2023

We have a filter query that we would like to further filter out.

Currently we have a board on a JSW that is using a JSW, filtering out an issuetype, a combination of two custom fields and removing a component and labels. We would like to further filter out all Epics that were not reported by our PO unless they are reported by someone and forecasted to be within the next PI. So.....I know. I know. Complex JQL for board filters are not the best way, and believe me, I will be trying to rid out the waste. In the meantime, can anyone give me some suggestions? Below is the complex query that is currently being used and all that is needed now is the filtering out of the epic only showing if reported by PO or showing by others only if in PI. Thanks ahead of time. All you JQL masters have at it.

project = [JSW] AND issuetype != [IssueType] AND ([CustomField] = [Value] OR [SecondCustomField] = [Value]) AND (component != [ComponentValue] OR component is EMPTY) AND (labels != [Value] OR labels is EMPTY) ORDER BY RANK ASC


4 answers

0 votes
JD.Lobue January 3, 2024

Any more suggestions.....???

0 votes
Kavitha Chandrasekaran
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.
December 30, 2023

Section 1: Can exclude issue type EPIC plus any other issue type you intent to exclude

(project = [JSW] AND issuetype != [IssueType] AND ([CustomField] = [Value] OR [SecondCustomField] = [Value]) AND (component != [ComponentValue] OR component is EMPTY) AND (labels != [Value] OR labels is EMPTY) )

OR

Section 2 can include just the EPIC issue type and filter out based on reported being PO or not. 

(project = [JSW] AND issuetype = EPIC AND ([CustomField] = [Value] OR [SecondCustomField] = [Value]) AND (component != [ComponentValue] OR component is EMPTY) AND (labels != [Value] OR labels is EMPTY) 

AND (reporter = 635f8aaffe5ff375235b158e) OR (reporter != 635f8aaffe5ff375235b158e AND Sprint = 4)))

Kavitha Chandrasekaran
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.
January 2, 2024

hi @JD.Lobue Hope this helps. 

JD.Lobue January 2, 2024

I tried above and it only is returning the epics. No other issuetypes are returning.

0 votes
Kavitha Chandrasekaran
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.
December 30, 2023

Do you want to filter out just Epics not reported by the PO or all issues (from the filtered list by the issuetype which you already have) related to the EPIC not reported by the PO? 

JD.Lobue January 2, 2024

I want to filter out only those epics that were not reported by the PO that are scheduled for the first PI, and keep all other issuetypes and epics that were reported by the PO regardless of schedule.

0 votes
John Funk
Community Champion
December 30, 2023

Hi JD - Welcome to the Atlassian Community!

Not sure that I have brain power for the full query right now but have you thought about implementing the board filter you have above? And then assuming that works, adding a quick filter to see if it filters out what you want. That way you could trouble shoot just that last part.

JD.Lobue January 2, 2024

How can we use a quick filter to filter out epics?

John Funk
Community Champion
January 3, 2024

Board Settings > Quick Filters

Create a quick filter called Hide Epics. The JQL will be: issuetype != Epic

Suggest an answer

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

Atlassian Community Events