Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,536
Community Members
 
Community Events
184
Community Groups

Help with JQL: Filter out tickets created only over weekends.

Dear Community,

I am really badly looking for a help regarding filtering out issues, created only over weekends ( Saturda, Sunday).

I've seen several topics, where people were using JQL with startWeek and so on, but in my case that doesn't work at all. 

Maybe there is any other 3rd party plugin, which has the option to filter out such issues, with specific days? 

 

Thank you!

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 20, 2022

Hi,

you can try comthing like this:

created > startOfWeek(-26h) AND created <= startOfWeek(1d) ORDER BY created DESC

May be you will need to adjust the argument in the first startofweek function

Thank you very much Mohamed! Do know maybe how this query is calculating the startofWeek, like whats the timestamp base to calculate -26h?

 I am struggling also to filter out issues during working week and specific time frame like 09:00-18:00

created > startOfDay("+9h") and created < startOfDay("+18h")

and the same during working week, but including nights only

created > startOfDay(-6h) AND created < startOfDay(8h)

Do you think this querys make sense? 

Thank you once again!

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 21, 2022

Hi,

by default startofweek means sunday at 12am so i think the correct syntax should be

startOfWeek(-24h)

instead of

startOfWeek(-26h)

 StartOfDay() is equal to 12am so your first query seems correct. If you want the issue created outside working hours you could do it like below:

created > startOfDay("+18h") AND created < endOfDay()

But be aware that this JQL will return results only when you launched it after 18h, so you will need to create a subscription to have a mail with the issue list.

you can take look at this thread:

https://community.atlassian.com/t5/Jira-questions/Find-all-issues-created-outside-of-normal-working-hours/qaq-p/1978132

Like Tomasz likes this

Thank you @Mohamed Benziane  for your brilliant help. 

Like Mohamed Benziane likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events