I need data closed between Fridays. How do I use EndOfWeek() and StartOfWeek() functions?

I send reports on Fridays. So, I need to retrieve issues closed after last Friday and the Friday I send the report. I tried to play with EndOfWeek() and StartOfWeek() functions but I'm afraid I am missing something. The output is not correct.

2 answers

1 accepted

0 votes

What query did you try?

status changed to closed after startOfWeek(-1) before endOfWeek(-1)

will get you issues where status was changed to closed between last Sat morning and this Sat morning. I went for Sat morning because you need to omit last Friday but include this one. Does that wok for you?

You can tweak the duration as you wish.

Hi Jobin,

Thank you for your help!

I used different combinations of these functions and +/- of days and weeks and got completely confused. Your query works if I change second minus to plus: 

project = "TEST PROJECT" AND status changed to closed after startOfWeek(-1) before endOfWeek(1)

This one retrieved the right data. 

Thanks again,

Darya.

0 votes

Hello Darya, 

Perhaps this link can help you with what you need:

I Hope this helps!

Thank you Lorenzo!

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

247 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot