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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL error while using "After <Date>" clause

Hello,

I would like to get all the issues from current sprint and also from previous sprint which have carried over in this sprint. We are considering "carry over" issues which are not in specific status at the time of starting of the new sprint. I need  issues which does not have those statuses to be removed from current sprint issue list so I was trying following JQL. But I am getting error: Error in JQL Query: The NOT_IN operator does not support the use of the after "<Date>" predicate."

I am using following JQL query:   project in (X, Y) AND Sprint = <current_sprint_name> AND Issuetype not in (Epic, subTaskIssueTypes())  AND (status NOT IN ("User Test Ready", "User Test Progress", "User Test Done", "Done") After "2021/MM/DD 00:00")

Here After "<Date>" is the last day of previous sprint

Any idea, how can I modify the query?

1 answer

1 accepted

0 votes
Answer accepted

Hi @Amruta Pelapkar,

If you want to search with the AFTER keyword, you are performing a history search. You will need to include additional WAS or CHANGED TO keywords, as your current search Status not in is static.

From your description, I am not entirely sure what your expected result should be. But try something like this:

 project in (X, Y) AND Sprint = <current_sprint_name> AND Issuetype not in (Epic, subTaskIssueTypes())
AND (status WAS NOT IN ("User Test Ready", "User Test Progress", "User Test Done", "Done") After "2021/MM/DD
 00:00")

Thanks a lot @Walter Buggenhout _ACA IT_  for this clarification!. It worked.  I came across another scenario where I couldn't get issues which are in "User Test Kickback" status.

When issues are in "User Test Progress", if testing fail at this stage, issue will go to "User Test Kickback" and "Needs Rework" status where rework/ fix needs to be done by development team. So these are also carry over issues. What can be the query for this? I have tried following query

project in (X, Y) AND Sprint = <current_sprint_name> AND Issuetype not in (Epic, subTaskIssueTypes()) AND (status WAS NOT IN ("User Test Ready", "User Test Progress", "User Test Done", "Done") AND (Status in ("User Test Kickback", "Needs Rework")) After "2021/MM/DD 00:00")

In this query i am getting error Error in JQL Query: The IN operator does not support the use of the after "2021/MM/DD 00:00" predicate.

Hi @Amruta Pelapkar,

I see exactly the same problem as with your first query: you wrote the After "2021/MM/DD 00:00"  without a history search. You can try either of these alternatives:

Status WAS IN ("User Test Kickback", "Needs Rework") After <some date>

or

Status CHANGED TO ("User Test Kickback", "Needs Rework") After <some date>

if you want to explicitly pick out issues that made either of those transitions after the given date.

Yeah make sense! I tried it and it works!! As you pointed out, my "After" clause worked if i give "history" criteria. Thank you so much for the help!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

636 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you