Missed Team ’24? Catch up on announcements here.

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

How to set a Dynamic Date range in search filter criteria?

Ananda July 8, 2013
Hi all, I am looking to track last update of issues over the following date ranges: 1-10 days , 11-20 days, 21-30 days and so on... These date ranges are not restricted to the start of the month, i.e. if an issue was last updated on say 20th June then it would appear in my filter for 11-20 days as on 10th July and not on the 1-10 days filter. Any suggestions how to search for a dynamic date range? Thanks

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Joshua Thompson July 8, 2013

I may have missed the boat but can't you just use the normal JQL syntax?

Last updated within 10 days: updatedDate > -10d

11-20: updatedDate > -20d and updatedDate < -10d

21-30: updatedDate > -30d and updatedDate < -20d

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2013

That's exactly what I was going to post.

With the additional point that JQL has a couple of other potentially useful functions like endofweek, endofmonth etc (start ranges and years etc also there)

Ananda July 8, 2013
Thanks Joshua, yes i seem to have skipped that rather simple solution!
Bhushan Nagaraj
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.
July 9, 2013

Sorry I misunderstood the question. I thought you wanted to list all the issues irrespective of the month or year, but created between the 10th and 15th day of the month.

0 votes
Bhushan Nagaraj
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.
July 8, 2013

Hi Ananda,

You can write your own jql plugin to achieve this functionality. I have documented the steps for writing a jql function here.

https://bitbucket.org/bhushan154/jira-jql-plugin-tutorial/wiki/Home

You can download the source code from here.

https://bitbucket.org/bhushan154/jira-jql-plugin-tutorial/overview

If you are just interested in using the function, download the file from here and run the query

issue in dateRange(PROJECTKEY, startDate, endDate)

Example:

issue in dateRange(DEMO, 5, 10)

https://bitbucket.org/bhushan154/jira-jql-plugin-tutorial/downloads

Cheers

Bhushan Nagaraj's Visual Thumbprint

TAGS
AUG Leaders

Atlassian Community Events