Forums

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

Proper syntax for "created before 2021" ?

Johanna Metzger September 17, 2021

Hello, 

Can you please help to select the proper syntax (in the advanced JQL search)  to retrieve all tickets created before 2021 ?

I tried to select "created < endOfYear(2020)" but it does not work..

Did not find any clue on Syntax help page

 

Thanks a lot for your support

Johanna

3 answers

1 accepted

0 votes
Answer accepted
Olga Videc
Community Champion
September 17, 2021

Hello @Johanna Metzger 

Welcome to the community.

The most basic syntax is created <= 2021-01-01

What Alex said is correct.

Advice, if ever in doubt, use basic search created date between blank and 1/Jan/21 search

after that switch to JQL and you will see the syntax behind it. 

BR, Olga

2 votes
Alex Koxaras -Relational-
Community Champion
September 17, 2021

Hi @Johanna Metzger and welcome to the community!

The proper syntax will be

  • created <= endOfYear() for all issues before the end of the year 2021
  • created <= endOfYear(-1) for all issues before the end of the year 2020

You can read more here.

0 votes
Johanna Metzger September 17, 2021

Thank you both for your help !! It works fine.

And indeed it is quite more accurate using "created <= 2021-01-01" specific date !

 

Kind regards

Johanna

Suggest an answer

Log in or Sign up to answer