Forums

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

JQL Query for Date Ranges excluding Weekends

Richard Canlas
Contributor
December 25, 2022

I am aware of this topic: https://community.atlassian.com/t5/Jira-Core-Server-questions/Exclude-weekends-in-JQL-Query/qaq-p/1030290

But I still cannot for the life of me solve this problem.

My goal is to find:

-All issues updated within last four hours

-All issues updated between 4-24 hours ago

-All issues updated between 24-28 hours ago

-All issues updated between 28-48 hours ago

-All issues updated  between 2-3 days ago

-All issues updated more than 3 days ago

 

^All with the caveat that the weekends should be excluded.

 

I know this is a really tough ask. If it is not possible, I will settle for:

-All issues updated within last 1 day

-All issues updated between 1-2 days

-All issues updated between 2-3 days

-All issues updated more than 3 days ago

^All with the caveat that the weekends should be excluded.

 

Thank you very much!!!

2 answers

0 votes
Iryna Komarnitska_SaaSJet_
Atlassian Partner
December 26, 2022

Hi, @Richard Canlas 

This problem can resolve Text to JQL gadget developed by my team. It's free!

With it, you don't need to know the query syntax. Just enter your request in plain language and get the desired result in a few seconds. 

But, a little advice, experiment with it, asking your request in different forms.
An example is shown in the screenshot.

I hope the gadget will be helpful to you!

 

2022-12-26_16-39-14.png

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2022

Hi @Richard Canlas ,

this is a recurring question. Right now there is not a specific way to do that. You need to use startOfWeek()/endOfWeek() in your JQL in order to manually exclude specific weekend. 

Hope this helps,

Fabio

Richard Canlas
Contributor
December 26, 2022

@Fabio Racobaldo _Herzum_ thanks for your reply. So the specific way is to include startOfWeek()/endOfWeek()  in my JQL? I am struggling to manually do that and need help. 

Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2022

Hi - alongside this question in the right-hand nav is a section called Related Community Content. Following one of those links I found a few previous questions with answers and comments that should give you some examples and ideas on how to use startOfWeek()/endOfWeek():

(Excellent work by @Phill Fox there.)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events