You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I'd like to know if you can help me with this: I'm trying to calculate how much business time it happens between 2 dates (weeks, days, hours, minutes), for example:
* BusinessDays (business days are considered to be Monday to Friday, 9am to 6pm)
I need to calculate the business time between Date A and Date B: 1w 1d 4h 30m
Thanks in advance!!
Hi @Nicolás Donnelly Kehoe and welcome to the community!
This can be done with automation, but I'd need further context into how you're planning to use this data. For example, if you're looking to capture it in a report/dashboard, you'd need to capture the data in a custom field vs sending a communication (comment, slack/teams, email), it could just be in the body of the message.
Here's a quick example of how it could work (I'm using Now and Due Date):
{{now.diff(issue.dueDate).businessDays}}
Hi @Mark Segall
Thanks for you response!
I've tried using that function but I think it returns just the number of days between those dates. I believe it doesn't include number of hours, minutes.
For more context, I'm trying to create an automation to log work when an issue goes from WIP to DONE.
Thanks again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry - Edited my response after. You'll need to perform some math functions to get the breakdown you're looking for, but it all starts with Date Diff and businessDays
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unless someone beats me to it, I'll spend a little time on this later today to try and help with exact math functions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Mark! I really appreciate your support!
I'll also try to apply what you have shared with me before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Honestly, I added an automation handler and call an webhook with the issue payload. My webhook endpoint calculates the hours, and updates the field. Or, returns that value back.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.