using issueFieldExactMatch to filter specific months

shay zinamon January 6, 2021

how/can i use 

issueFunction in issueFieldExactMatch to filter issues created in a specific month or months without filtering the day or the year ?

2 answers

0 votes
Veronique DUFOUR January 6, 2021

Hi @shay zinamon 

You can use the following functions:

  • now()
  • startOfDay()
  • startOfWeek()
  • startOfMonth()
  • startOfYear()
  • endOfDay()
  • endOfWeek()
  • endOfMonth()
  • endOfYear()

 Also, here are some examples: 

updated <= "-4w 2d" (Use "w", "d", "h" and "m" to specify weeks, days, hours, or minutes.)

status WAS "Resolved" BEFORE "2019/02/02" (or DURING ("2010/01/01","2011/01/01"))

due < endOfMonth("+1")  optional increment of (+/-)nn(y|M|w|d|h|m)

Still it not exactly what your looking for but I think it will get you closer.

shay zinamon January 7, 2021

i dont see how this will get me closer, the replay above will give me what i need but will require multiple updates for each year. 

thank you for your time and effort 

0 votes
Radek Dostál
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.
January 6, 2021

How far historically do you need to go?

 

Because instead of playing with regular expressions you might be fine with just

(created > 2020-01-01 and created < 2020-01-31) or (created > 2019-01-01 and created < 2019-01-31)

Assuming we're not going back more than 10 years or hitting a jql character limit.

shay zinamon January 7, 2021

this will work but will require a manual update of the filters every year, i am looking for a general solution that is elegant and general 

Suggest an answer

Log in or Sign up to answer