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,553,475
Community Members
 
Community Events
184
Community Groups

Story Point Summation - Child to Parent

Edited
Jay R
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Mar 19, 2023

I've read countless articles on this and outside of summing Story Points of Sub-tasks, I cannot get this to work for Tasks.

Does anyone have code that sums Story Points from a Task to it's parent Story?  or just code that sums Story Points from children to its Parent?

These do not work:

  • {"fields": {"Story Points": {{#=}} {{#subtasks}} {{Story Points}} + {{/}} 0 {{/}} }}
  • {{lookupIssues.Story Points.sum}}
  • {{issues.tasks.Story Points.sum}}

    I've tried various combinations of actions and triggers. Screenshot 2023-03-19 at 7.21.22 PM.png

    Screenshot 2023-03-19 at 7.13.56 PM.png

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 24, 2023

Hello @Jay R 

Welcome to the Atlassian community.

The native parent/child issue hierarchy in Jira is

Epic
|-- base issue types: Story, Task, Bug, etc.
|-- subtask issue types

Jira does not recognize that there is a parent/child relationship between a Task and a Story when you have used the generic issue linking function to artificially create that relationship by using names in the link that say "parent of/child of".

I am surmising that you have used the generic issue linking functionality because in your automation rule you have this Condition:

Screen Shot 2023-03-24 at 4.57.42 PM.png

Can you provide a screen image that shows the details of one of your "parent" Stories that has "child" Tasks so I can confirm this is the case?

 

If you have used generic issue linking to create that parent/child relationship, then use of the "For Parent" branch in the automation rule will not work because Jira does not see the generic link as a parent/child relationship.

Assuming you are using generic issue linking...

Does a Task have that link with one and only one Story?

Here is a rule for summing up story points through a generic link relationship. In my case the link relationship is Story "has bug" Bug. Stated in the reverse that would be Bug "is child bug of" Story , which is similar to your generic parent/child link.

This rule is triggered when the Story Points on the child Bug is changed.

Screen Shot 2023-03-24 at 5.21.38 PM.png

 

You might also want rules that recalculate the story point sum if a Task is newly linked to a Story, and if a link between a Task and Story is removed.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 14, 2023

Hello @Jay R 

Did my answer above solve your problem?

Suggest an answer

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

Atlassian Community Events