Greetings, community!
I have an unconventional approach here - we're using one of the Business Projects as a corporate calendar, with several types of issues like sick leaves, vacations, etc.
Naturally, public holidays of the country are entered manually and are a separate type of issue.
And we also need to count days to make reports via exply.
So we have a separate field for days count which is populated via {{issue.duedate.diff(issue.customfield_11607).abs.BusinessDays}}
Now the question: we have only business days accounted for, weekends excluded - that is fine.
But is there a possibility, maybe through automation to add to this smart value query a condition that would also ignore the dates, on which a separate type of issue (public holiday) appears?
Perhaps, via a call to the API?
This is an interesting one. I see you have this question tagged with JSM. Is it your end goal to have the JSM project automatically set due date factoring in business days and holidays?
If yes... Instead of putting in the effort to calculate the due date, you could simply use the SLA functionality. Use the "Time To Resolution" as your "Due Date" and apply a custom calendar where you can configure holidays. Then you can build your reporting against Time to Resolution rather than Due Date. As each issue will give you down to the minute how much time remaining before it is in breach.
If no... I don't see a straightforward mechanism for factoring in business days and holidays. I suppose you could do something like this:
dueDate IS NOT EMPTY AND resolved IS EMPTY
project = YourBusinessProject AND dueDate >= startOfDay() AND dueDate < {{issue.dueDate}}
{{#=}}{{issue.duedate.diff(issue.customfield_11607).abs.BusinessDays}}-{{lookupIssues.size}}{{/}}
NOTES
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.