The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Automation: Sum the estimated time of all related issues

Tobias Magnus (ext)
Contributor
September 22, 2020

This is the scenario:

I created a new issue type "Slavetask" as the normal subtask did not match our "workflow".

As, as far as I know, it is not possible to create Parent/Child relationship by myself, so I started to build an automation rule to handle this problem.

This is what I have:

  1. Issue updated
  2. If linked issues present (Type Slave of)
  3. Then: Create variable "estimatedTime" value issue.timeoriginalestimate
  4. Branche Rule For linked issues types Slave of
  5. ------- BRANCH RULE START -------
  6. Lookup issues JQL: issue in linkedIssues("{{triggerId}}") AND issueLinkType in (MasterSlave,"Master Of") AND status != closed
  7. ------- BRANCH RULE END -------
  8. Branch Rule JQL: issue in linkedIssues("{{lookupIssues.key}}") AND issueLinkType in (MasterSlave,"Slave Of") AND status != closed
  9. ------- BRANCH RULE START -------
  10. Create variable "Estimated Time" value: {{#=}}{{timeoriginalestimate}}+{{estimatedTime}}{{/}}
  11. Log action: ik: {{issue.key}}, zeiten: {{issue.timeoriginalestimate}}, eT: {{estimatedTime}}
  12. ------- BRANCH RULE END -------
  13. Log action: est {{estimatedTime}}

 

So far so good. Within the branch rule no2. it returns the correct sum of the estimated time for each single issue + the trigger issue. But it does not sum up at all.

 

Also the last log action is fired before the last Branche rule is executed (as i can see in the log as it stands before the other log output).

 

Is there a way to get the sum of all this issues and add it to the master? At the moment I only can do it with the trigger issue data.

Any ideas?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tobias Magnus (ext)
Contributor
October 20, 2020

I still struggeling with this issue. Any idea from anyone?

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events