I am running JIRA 6.4.8. I would like to create a series of filters to represent weeks of the year, including the prior year.
Current year is easy enough with the StartOfYear() function:
created > startOfYear("+1w") AND Created < startOfYear("+2w")
I am stumped on how to do this for a specific prior year. I tried the above saved as a filter and combined it with (Created > startofYear('-1y') AND created < endOfYear('-1y')) AND filter = 2016W2 but that resulted in:
Field 'filter' with value '2016W2' matches filter '2016W2' and causes a cyclical reference, this query can not be executed and should be edited.
Is it possible to create a search filter using (+/-)n(yMwdm) notation rather than specify exact dates for prior years (e.g. 2014, 2015) rather than current?