Hi,
Have a problem when I calculated the difference between two dates in businessDays with a Date Time Picker field
Im trying this
{{customfield_10XX1.diff(customfield_10XX2).businessDays}}
Begin customfield_10XX1 and customfield_10XX2 Date Time Picker fields
Ex:
customfield_10XX1 = Wednesday 05 Feb 08:00
customfield_10XX2 = Tuesday 11 Feb 18:00
This would be 5 business Days but the result of this is {{customfield_10XX1.diff(customfield_10XX2).businessDays}} = 4
BUT If
customfield_10XX1 = Wednesday 05 Feb 00:00
customfield_10XX2 = Tuesday 11 Feb 01:00 (any time after 00:00)
This {{customfield_10XX1.diff(customfield_10XX2).businessDays}} = 5
I thought it isnt going to take time but apparently it does!
Can you help me?
I tried this too:
customfield_10XX1 = Wednesday 05 Feb 08:00
customfield_10XX2 = Tuesday 11 Feb 18:00
{{issue.customfield_10XX1.convertToTimeZone(issue.reporter.timeZone).diff(issue.customfield_10XX2.convertToTimeZone(issue.reporter.timeZone)).businessDays}} the result = 4
and
{{issue.customfield_10XX1.jiraDate.diff(issue.customfield_10XX2.JiraDate).businessDays}} = blank, nothing