Forums

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

Datediff Excluding Weekend

Marc Joseph Villagracia
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!
May 5, 2026

Hi Team, 

 

So i was trying to find ways to calculate start and end dates and exclude sat sun but I can't seem to find a working solution. 

So for my flow, I use

{{issue.Start date.diff(issue.End date).days.abs.plus(1)}}

 

So far, this gives me the result that i want as long as weekend is not involved but I want to exclude weekend, has anyone implemented something like this in the past? 

1 answer

1 accepted

1 vote
Answer accepted
Walter Buggenhout
Community Champion
May 5, 2026

Hi @Marc Joseph Villagracia,

Instead of days you can use businessDays as unit, thus excluding weekends. So:

{{issue.Start date.diff(issue.End date).businessDays.abs.plus(1)}} 

Hope this helps!

Marc Joseph Villagracia
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!
May 5, 2026

thanks. it worked!

weird that when i used {{issue.Start date.diff(issue.End Date).businessDays.abs}} earlier, it didn't work. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events