I try to build to build a filter which is suppose to return all issue from current year 2021.
For doing so, I add to the end of my Jql script the following created >= -365d
But this return records which has been also created in 2020, what I am doing wrong ?
Thanks for help
Hello @serge calderara
If you want to retrieve all issue of the current year you can use this :
created >= startOfYear()
You can use the startOfMonth() function.
This one should work for you :
In your scenario if you want to go back until December you will replace "-1" by "-2" and so on.
Your JQL is looking for "date larger than or equal to 365 days ago", it's not looking at calendar years.
You should look to the calendar functions, start of/end of, day, week, month and year.
For this one, I think I'd use
created > startOfYear()
(If you wanted to include last year, you'd use "created > startOfYear(-1)" )
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