Hello,
In our company, we want to automate the calculation of resolution time in business days. (without weekends, and local free days).
the diff function give us the total duration and not business work.
issue.created.diff(issue.resolutiondate) -> (exp: 3 days 18 hours 40 minutes 15 secondes)
I tried to manipulate the code and mines days , plus business days bit it seems that the format of the result of diff function does not support that.
we have a cloud jira service managemant instance.
So please, we need help to achieve this .
FTITI Walid
Hey @Admin ,
There is a syntax to calculate the difference in business days, however, then you will change the value you calculate with to days, and you lose the hour / minute / second data.
{{issue.created.diff(issue.resolved).businessDays}}
If you really need this information as well you could try some advanced calculations ( count difference in days > count difference in business days > substract previous results (then you know how many non-business days you had > count total difference in time > substract amount of non business days)
Hope this helps!
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Tessa Tuteleers , thank you for response but that does not help me.
As i mention I tried already the advanced calculation by the diff function result's format not compatible with arithmatic operations when triying to retrieve non business days. also We d'ont have 'businesshour' statemant to use and we have only businessdays that will make us loosing the precision with hours .
Regards,
Walid FTITI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.