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

Sum up subtask points to story parent in next gen / team managed projects

Edited

Hi Jira Community,

 

As a project administrator I want to give subtasks points and get those points summed up in the story - the parent.

Please be aware that this is a Next gen / Team managed project and therefore there are no "Story Point Estimate" in "Choose field to set" under "Edit issue" in the Automation section. Therefore, note the difference between "Story points" and "Story point estimation".

All tutorials regarding this, is in Company managed only, and not team managed, as I'am looking for.

Here is what I tried to with JSON: 

{
{"fields":{"Story point estimate"}}
{{issue.subtask.Story point estimate. Sum}}
}

 

Skærmbillede 2023-11-16 164120.png

 

Here is the Audit Log an Errors:

Skærmbillede 2023-11-16 164311.png

 



Best Regards
Andreas - Project coordinator

2 answers

1 accepted

0 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.
Nov 16, 2023

Hi @Fuji 

Ignoring for the moment the problems of using story points on subtasks, rather than with stories...

Your JSON and the smart values in the rule are invalid, as the error message indicates.  Please look here to learn the correct syntax for updating a number field: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Number-custom-field

For example:

{
"fields" : {
"Story point estimate" :
{{issue.subtasks.Story point estimate.sum|0}}
}
}

 

Kind regards,
Bill

Hi Bill,

Thank you very much for your answer. It works now!

I should properly learn the basics of JSON on day, at the moment I don't.
I can somewhat see the logic behind this JSON, besides why there should be a number? ("0").

Also, I'am interested in what kind of problems it could yield? 

Regards,

Andreas

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.
Nov 20, 2023

I am glad to learn that helped.  For your other questions...

I added a default value of 0 to handle the possibility that the issues have no value.  Without that default, the sum would return a null value.

 

For potential problems using story points in this manner...

The default, built-in issue hierarchy for Jira is Epic > Story / Task / Bug > Sub-task.  This helps manage common scales of work, from big, valuable things down to smaller pieces...which normally are not releasable by themselves.  And so Sub-tasks are commonly used as pieces to support building a valuable thing.  There are many interpretations of how to use the concept of "story points", including "value", shared understanding-checker, velocity forecasting-helper, and so forth.  (For this reason and others, the person who "invented" the concept of story points has written extensively they regret doing so.  Please see the writings of Ron Jeffries to learn more.)  And so story points are commonly determined during backlog refinement for releasable items...like user stories.  When they are instead added to a smaller piece that is not releasable, backlog refinement and planning become more difficult, and longer in duration: the item must be decomposed into smaller pieces and sized prior to forecasting and start of work.  And with many more items sized, seeing and managing the variation in sizing becomes difficult...impacting the team's ability to improve.  And for some teams, "getting points" becomes the goal instead of delivering value for stakeholders.

Jira has an alternative for forecasting the effort / sizing of smaller things: it is to use time-based estimation.  For that, it may make more sense to size at whatever the smallest work-item-breakdown is for the team, and then sum up the values.  The built-in reporting also work when using this mechanism.

0 votes
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 16, 2023

Hi Fabian,

Thank you for taking the time to send the link.

Unfortunately the tutorial is concerning a company managed and not a team managed project (next gen). 

Regards,

Andreas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events