Log Time on epic based on total spend from trigger issue

Florian Warncke January 14, 2021

Is it possible with Jira Automation (Cloud) to log time on Epic based on total spend time in Trigger issue. 

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.
January 14, 2021

Hi @Florian Warncke  -- Welcome to the Atlassian Community!

Yes, you should be able to do that.  The technique I found was to sum up the trigger issue's time spent as seconds, and then convert it to minutes.  For example:

  • Trigger: manual (I used this for the example)
  • Branch: for epic (parent)
    • Action: edit issue fields, using JSON
{
"update": {
"worklog" : [
{ "add": {
"timeSpent" : "{{#=}}{{triggerIssue.worklog.timeSpentSeconds.sum}} / 60 {{/}}m"
}
}
]
}
}

 

Best regards,

Bill

Suggest an answer

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

Atlassian Community Events