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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

How to filter all current year issue and previous month

Dear all,

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


3 answers

3 accepted

0 votes
Answer accepted

hello @Mohamed Benziane , thanks that works.

by the way if I need to retrive issue from previous month what will be the syntax ?

Let say that if current month is february, I would like the filter of only month january.

is tehre any prevMonthofYear() ?


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.

0 votes
Answer accepted

createdDate >= startOfYear()

0 votes
Answer accepted

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)" )

Suggest an answer

Log in or Sign up to answer

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