Forums

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

Zeiten Task und Subtask addieren und in neuem Vorgang protokolieren

Martin Hirsch
Contributor
September 22, 2025

Ich benötige eine Automation welche beim Fertigstellen eines Tasks einen anderen Task erzeugt und dort die Zeiten des ursprünglichens Tasks UND der SubTasks addiert und einträgt. Für den Task selbst klappt das wunderbar, aber die Summierung der Subtasks bereitet mir Schwierigkeiten.

So sieht die Automation momentan aus. Es fehlen die protokollierten Zeiten der Subtasks.

Und streng genommen müsste auch die Prüfung zu Beginn (timespent >= 40) schon die Stunden der Subtasks mit beinhalten. Ist das überhaupt umsetzbar?

 

image.png

1 answer

1 accepted

2 votes
Answer accepted
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.
September 22, 2025

Hi @Martin Hirsch 

Have you tried using the subtasks smart value to sum the values, such as from {{triggerIssue.subtasks}} to access the time tracking smart values?

 

Kind regards,
Bill

Martin Hirsch
Contributor
September 22, 2025

Hi. How can i do this? 

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.
September 23, 2025

You would use the smart value I noted with the time tracking attributes, and if necessary, use a math expression to sum that with the parent work item's data:

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

 

What have you tried to use that smart value thus far? 

If it is not working as expected, please post images of your updated rule and of the audit log details for context, and explain what is not working.

Martin Hirsch
Contributor
September 23, 2025

Sorry, but i don't unterstand how to use the smart values.

Martin Hirsch
Contributor
September 23, 2025

This is not working. Is always null.

image.png

Martin Hirsch
Contributor
September 23, 2025

image.png

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.
September 23, 2025

The timeSpent smart value is the "pretty print" text value, such as "3d 2h 1m", and it cannot be summed.  Please use the timeSpentSeconds value instead and divide by 60 to log the minutes, and add the units of measure to the end:

{{triggerIssue.subtasks.timeTracking.timeSpentSeconds.sum.divide(60)}}m

 

And, I recommend pausing to learn the structure of the time tracking smart values, using this how-to article:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

Like Martin Hirsch likes this
Martin Hirsch
Contributor
September 23, 2025

This is, what i am searching for. Thank you very much :)

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events