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.
I have automation which adds time to tickets timelog. I want the the log to always reflect business days when possible. However, when the time diff is much smaller than a business day, it logs 0.
I have the following options as part of automation:
{
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "{{issue.In Progress Start Time.diff(now).businessDays}}d"
}
}
]
}
}
I've tried other options, like logging seconds, minutes, etc but then I lose the sense of business and the time logged is too large.
Is there a way to have any sort of conditional logic that says if less than 1 business day, to log in seconds/minutes, else log with business days?