The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Regarding startof functions, do these functions work over month end boundaries

Jeff Castro
September 2, 2022

I am curious as to whether startof functions work across month end boundaries.  I was using startOfWeek() in a query, trying to find items resolved from the start of the current week.  The query kind of worked, but since yesterday was 9/1, the only items returned were those resolved during the week in September.  So items resolved during the week, but prior to 9/1 were not returned.

Close on getting a query I want, but not quite there if the month end boundary matters.  Any suggestions would be appreciated.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Trudy P Claspill
Community Champion
September 2, 2022

Hello @Jeff Castro 

When I use 

created >= startOfWeek()

...I am getting issues that were created on August 30 and 31. I'm workin on a Jira Cloud instance.

Are you working on Jira Cloud or Jira Server/Data Center?

Can you show us the filter you are using? Maybe something else is filtering out the issues from earlier in the week.

Jeff Castro
September 6, 2022

Good morning @Trudy P Claspill .  I think I did enter my question in the wrong forum as I do believe we are JIRA Cloud.

I ended up finding some success using startOfDay (-7d), which seemed to cross the month boundary.  Thanks for your help.

TAGS
AUG Leaders

Atlassian Community Events