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,456,307
Community Members
 
Community Events
176
Community Groups

Help with correct JQL

Hi guys

 

I need help with JQL that brings all issuetypes except sub-tasks created before 01/01/2022  and all unresolved issue types (Iniciativa, Epic, Story) created before 01/01/2020. 

I created this query, but I notice that don't work as well:

 

created >= 2021-01-01 AND status not in (Removed, Cancelled, Cancelado) AND issuetype not in (Sub-task) OR 
created >= 2020-01-01 AND created <= 2020-12-31 AND issuetype in (Iniciativa, Epic, Story)
AND statusCategory not in (Done)

 

2 answers

0 votes

Your JQL does not match the question - without clear grouping, the computer cannot tell what you are actually asking.  It has no choice but to read left-to-right, which is not what your question is phrased as. 

There's also some fuzziness around status and resolution - you say unresolved, but then look at the statusCategory, which does not necessarily mean unresolved.  I've stuck with statusCategory here.  And your "created before" is actually written as "created after" in your query.  And the dates are different to your question.

Your question should be written as


( created <= 2022-01-01 AND issuetype = standardissuetypes() )

OR

(
created <= 2020-01-01 AND issuetype in (Iniciativa, Epic, Story)
AND statusCategory != Done
)
0 votes

Hi @Edimara 

I've tried your JQL with a small change, but I think it works fine:

created >= 2021-01-01 AND status not in (Closed, Cancelled) AND issuetype in standardIssueTypes() OR created >= 2020-01-01 AND created <= 2020-12-31 AND issuetype in (Bug, Epic, Story) AND statusCategory not in (Done)

Did you reindex your instance? Maybe that's the problem.

In the above JQL I had to make changes to reflect my setup

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events