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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
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() )


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

Atlassian Community Events