Forums

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

How to set the Time Tracking / add a Work Log entry via Card Automation

Steven Wills
Contributor
August 7, 2023

We are using the Time tracking feature. On each card on the right, there is an option with the label "Time tracking".

You can enter time is weeks (w), days (d), hours (h), minutes (m).

Once you add time, it shows up as an entry under the Work log tab in the center of the card.

I created Automation to create a weekly card and I want to set Time tracking. I followed the steps in the docs and tried both examples at the following link under the "Time Tracking and Logging Work" section. But it isn't working. My automation creates a task and I want to assign 1h of time spent to it.

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

As a bonus, is it possible to set the user who the entry is for as well?

{
"update": {
"customfield_10015": [
{
"set": "{{now}}"
}
]
},
"worklog": [
{
"add": {
"timeSpent": "1h"
}
}
]
}

 

1 answer

1 accepted

0 votes
Answer accepted
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2023

Hello, Good day. I believe you want to create a sub-task and add time through automation. You can try the rule shown on the image.

Screenshot 2023-08-08 at 10.39.02 AM.png

Steven Wills
Contributor
August 9, 2023

Yes, I ended up finding that task and solving that way. Thanks.

Suggest an answer

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

Atlassian Community Events