Forums

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

How to make a query between sprint dates (tue to mon)

Emmanuel Bergman
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!
July 26, 2020

Hi, Im trying to make a query that will show me all the tickets that passed a certain status in the current sprint, our sprints are from Tuesdays to Mondays.

 

this is the date range part I used:

"status" >= startOfWeek(2d) AND "status" <= endOfWeek(2d)

 

basically startofweek+2 is Tuesday, endofweek+2 is Monday.

This works from Tuesday till Saturday, but on Sunday+Monday im not getting any data.

My guess is that its a new week, but its waiting for +2 to start showing me data.

 

My end goal is to also be able to see the data of the current sprint from the previous week on Sundays and Mondays (of current week) as well as any other day in the sprint, then reset on Tuesdays.

 

--------Edit-------

I added another piece with OR to cover the Sunday/Monday portion, testing it now, but im afraid that in this case on Tuesdays it wont reset, waiting for test result tomorrow :)

("status" >= startOfWeek(-5d) AND "status" <= startOfWeek(1d) OR "status" >= startOfWeek(2d) AND "status" <= endOfWeek(2d))

-------------------

 

 

(until now I had to update manually the sprint dates, but I was hoping for an automatic solution)

 

Thanks in advance!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events