Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,963
Community Members
 
Community Events
176
Community Groups

How to sum up the original estimate of all child issues to their parent issue.

Need to add up all child issues original estimate to parent original estimate.

I have tried many ways join, sum, divide/60 even web request to get all child issues where original estimate is not empty but it is not performing sum returning empty expression.

Can refer the below snap for more clarity.

original.png 

Let me know for any workaround for this.

Thanks in advance.

3 answers

Fantastic Tutorial on youtube here for this....no faffing, straight foward and very easy to follow.

How to sum up story points from sub-tasks to parent issue using Jira automation - YouTube

0 votes
Darryl Lee Community Leader Aug 12, 2021

Ohey there's also a template for this in the library:

https://www.atlassian.com/software/jira/automation-template-library#/rule/1371692

Thanks, Darryl.  I frequently forget that one for sub-tasks and end up "re-inventing the wheel"  :^)

__Bill

Like Darryl Lee likes this
0 votes

Hi @Mohini Chandwani 

You do not show in your rule what you are using to sum up the values, so would you please show that and show an image of your audit log from an execution that does not work as expected?

And you may want to look at these two posts, showing ways to do this for parent/children with and without sub-tasks involved:

Best regards,
Bill

Hello @Bill Sheboy ,

Rule is working fine, have referred the article which you have shared where I'm using advanced section for aggregation of all child's original estimate to parent.

originalEstimate.png 

Just wanted to know if my parent issue is not an Epic type, so in that scenario what we are suppose to use. I have tried "For Parent" as branch option but it is not considering the parent and I guess it is only for subtask issues, can refer the below snap.

branch.png

Can consider child issues are of "Bug,New Feature,Improvement,Task" type and parent is also one of them, do we have any branch to get the parent issue of all those child or with smart values can we find out. 

 

Thanks for the help!!

Like Bill Sheboy likes this

One thing to note is what type of project and what type of "parent" you have.

For company-managed projects, epics use the epic link to connect to child issues (story, task, bug).  For team-managed projects, epics connect by parent.  The branches should work for both.  For story/task/bug to sub-tasks, that uses that type of parent/child relationship.

I have tried the other branch Linked issues with relationship of "Parent/Child", but it is not updating the parent issue.

originalEstimateSum.png 

Let me know if I'm using incorrect way or wrong components.

Hi @Mohini Chandwani did u find the solution about ur last point?

I have the same problem.

Thanks

Hi @pedro_pizarro_bip

Yes, I have found the solution and implemented, it's working.

I'm attaching the snap of my rule, can refer.

Whenever the field value changes for Timetracking (Original estimate, time spent etc) the rule will get triggered, then triggered issue (child) will find the parent issue using the Linked issue branch component and will send the web request to get all child issues and their fields and at last adding of all original estimates of childs to parent through smart values.

And in Send web request, the following URL have been used.

https://www.abcd.com/rest/api/2/search?jql=issuekey%20in%20linkedIssues(%22{{issue.key}}%22,%22is%20a%20Parent%20of%22,%22is%20blocked%20by%22)&fields=timetracking

OriginalEstimateSum.png

Can try and let me know it works or not.

Thanks.

Hi @Mohini Chandwani  I'm trying but I see a different configuration in the part of "send web request"send-web-request.GIF

Do u have any idea about it?

Thanks

You have to use this below link

https://www.abcd.com/rest/api/2/search?jql=issuekey%20in%20linkedIssues(%22{{issue.key}}%22,%22is%20a%20Parent%20of%22,%22is%20blocked%20by%22)&fields=timetracking 

WebReq.pngid:password encrypt it and use it.

And then add component Edit issue field where you can put for sum up the estimation in advance section, can refer previous screenshot.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events