Forums

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

Exclude Saturday and Sunday from a range of dates in JQL

Shernel Monteiro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2023

I have this query

project = "xyz" AND due > startOfDay() AND due = startOfDay(3d)

What this does is , it gives me the issues where there are exactly 3 days remaining until the due date from today.

i.e if I have a ticket which has a due date of 10th July 2023 and today is 7th July 2023, the issue should show up.

Now from the 7th July to 10th July , there are weekends 8th and 9th July ( Sat and Sun).

Currently what the JQL is giving is including the weekends.

I want the JQL to exclude it.

Expected result: If the due date was on 10th July, it should give me the result when today was 5th of July.

How do I achieve this with JQL?

1 answer

0 votes
Mirek
Community Champion
July 4, 2023

Hi @Shernel Monteiro 

I think you would be able to find something creative here in a similar topic 

https://community.atlassian.com/t5/Jira-Core-Server-questions/Exclude-weekends-in-JQL-Query/qaq-p/1030290

Hope it helps! 

Suggest an answer

Log in or Sign up to answer