search results for specific date ranges

fbeck_br August 21, 2014

I have a weekly report every wednesdays.

this report may have two columns:

- last week issues status

- next week issues planning

for the first column I would like to have some query like this:

- All issues assigned to me

AND

- duedate <= startofweek() -5

AND

- duedate > startofweek() -12

Is it possible to perform some operation ( + or -) for startofweek() method ??

Or is there another idea to reach the results I need?

1 answer

1 accepted

0 votes
Answer accepted
Jose M.
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.
August 23, 2014

Please try:

last week
due >= startOfWeek(-1w) and due <= startOfWeek()

next week
due >= endOfWeek(1w) and due <= endOfWeek(2w)

fbeck_br August 24, 2014

Perfect!

thanks!

Suggest an answer

Log in or Sign up to answer