Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Time tracking for number of days on creation

Alexey Byzov February 6, 2024

Good day!

Can anybody help on how to create an automation.

We have a project, tracking all users vacation request. So when a user create a task in vacation request, there are 2 custom date fields vacation start date and vacation end date.

Can automation update Time tracking adding 8 hours to each day in period between dates and add comment "Vacation" when issue is created?

Could be very useful. Thank you.

PS: I can create automation upon creation to add 8h on specific day, but not a time period.

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2024

Hi @Alexey Byzov 

Please try using the date / time difference function to do that, using the units of measure of businessDays, and perhaps then multiplied by the 8h per day using the function multiply()

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-difference---

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/#Multiply

That value could then be entered using the Log Work action.  You may provide the amount, date started, and a comment.  But you cannot specify a range of dates.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-work

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events