UPDATE: See the accepted answer at the bottom of the accepted thread.
Hello All,
I am trying to calculate fractional business days between two date/time fields. I have gotten it to work for calendar days (see below), but I cannot make this work between two date/time fields for business days.
{{#=}}ROUND({{issue.customfield_11111.diff(issue.Resolved).millis}} / (1000*60*60*24), 3){{/}}
Example:
- Date 1: Jan 12, 2023 8:20am
- Date 2: Jan 17, 2023 4:40pm
- Answer for calendar days: 5.347 Days
- Answer for business days: 3.347 Days (desired answer)
I tried to put businessDays in place of millis and removed the calculation at the end but I cannot get the value to be in fractional days. Can anyone help me with solving this problem?
Thanks,
Austin