The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

[Automation] Use start date and end date to calculate number of days (exclude weekends)

Amy Chang
Contributor
May 10, 2024

Hi community,

I used {{[Start Date].diff([End Date]).businessDays}} to get the number of days.

Screenshot 2024-05-10 at 4.43.11 PM.png

However, it is a little bit not precise.

For example:

  • Start Date: 3 May 2024
  • End Date: 9 May 2024
  • Total No of days => 4

 

It won't include the day of the start date. How can I get the decimal place for the total number of days?

Thanks!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Dexter de Vera
Community Champion
May 10, 2024

Hi @Amy Chang ,

Sorry I'm confuse about your question. Can you explain more what your trying to do? if Start Date: 3 May 2024 and End Date: 9 May 2024 and base on you smartvalue {{[Start Date].diff([End Date]).businessDays}} the difference will be 4 because May 4 and May 5  are not business days. Computation will be 9-3=6-2(weekends)= 4.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events