Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need to include 5 business days and exclude weekends in Jquery

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

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
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

660 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you