Forums

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

Tempo startOfWeek() function

Olga Videc
Community Champion
January 14, 2019

Hello, 

 created <  startOfWeek(5d)  and created >  startOfWeek(1) should match issues created from Monday to Friday 

AND 

created >= startOfWeek()  OR  created >=  startOfWeek(6d) should match the issues created trough weekend Saturday, Sunday

But it does not work properly 

For first one to show Monday it need's to write  created <  startOfWeek(5d)  and created >  startOfWeek() but then the function also includes Sunday and ">" acts like ">="

If anyone could explain why is acting like this, I would appreciate it greatly.

Also, the function sees Sunday as first-day altho we are in Europe and Monday is the first work day

1 answer

1 accepted

0 votes
Answer accepted
Olga Videc
Community Champion
January 14, 2019

Okay my bad I didn't add "d"  to the second part of the function

 created <  startOfWeek(5d)  and created >  startOfWeek(1d)

Olga Videc
Community Champion
January 14, 2019

Atlassian admin, please delete this question

Alexey Matveev
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.
January 14, 2019

I marked this question as answered.

Like Olga Videc likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events