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

Need to include 5 business days and exclude weekends in Jquery

kotha Eswar rao November 9, 2021

As of now for the below mentioned J query I have mentioned tickets not updated for  5 days , Is it possible to update the below logic to 5 business days instead of 5 days, could you please share the updated  J Query

 

Need to include 5 business days and exclude weekends for the below query

 

updatedDate<= "-5d" AND type in (Incident, "Service Request") AND status="Waiting for customer"

 

 

1 answer

1 accepted

0 votes
Answer accepted
Albert Manuel
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.
November 9, 2021

Hi,

As far as i know, Jira doesn't know about weekends, a workaround i did in the past was to count days from the beginning (Monday) and exclude the last two. You can achieve this by using the JQL: startofWeek(-2d).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events