Forums

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

Month and Year in JQL filter

Mattias Kallvi
Contributor
May 16, 2018

Is there a syntax to use month and year when you create a JQL. For example:

created < -1y (issues created more than one year ago)

I know it's possible to write something like this:

created < -365d

3 answers

1 accepted

1 vote
Answer accepted
Deleted user May 16, 2018

Hi @Mattias Kallvi,

Unfortunately Month and Year is not supported natively by JIRA in this use case. Instead, you could use the Advanced Functions such as startofYear() and startofMonth() though this does not fulfil your requirements. My suggestion would be to stick with days and weeks when using Created

Apologies I could not be of anymore assistance.

Mattias Kallvi
Contributor
May 16, 2018

Well, I just wanted to get this confirmed. Thank you for answering so quickly.

0 votes
Robert Birek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2023 edited

You can use something like this:

created < startOfDay("-1y")
created < endOfDay("-1y")

It's not EXACTLY year ago, since You compare to the start/end of the current day, but it worked for me.

 

0 votes

By default only Days(d) and Weeks(w)

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2018

Unfortunately, W is the upper bound

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events