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

summing up story points of subtasks with designated value of custom field using smart value

I tried {{issue.subtasks.Story Points.sum}} to sum up story points, and it worked.

After that, I wanted to sum up only issues with the value I want of the custom field. Field is 'Components', and it has values 'Backend', 'Frontend', 'Business', 'Design'.

 

I thought {{issue.subtasks.Components.Frontend.Story Points.sum}} would work, but it didn't print any text. Is there any way of using smart value to use as I intended?

2 answers

1 accepted

1 vote
Answer accepted
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.
Sep 21, 2023

Hello @Josh 

Welcome to the Atlassian community.

You will need to use a Lookup Issues action with a JQL statement to retrieve the subtasks that match your condition; i.e.

Component = "Frontend" and parent={{issue.key}} and issuetype in subTaskIssueTypes()

Then you can use a smart value like this to get the sum of story points in the results set.

{{lookupIssues.Story Points.sum}}

Thanks Trudy! It really helped me! 

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.
Sep 21, 2023 • edited

Hi @Josh -- Welcome to the Atlassian Community!

First thing, why do you have story points assigned at a sub-task level?  One of the ideas of story points is toward delivering value to production, and one of the ideas of sub-tasks is a piece of work contributing to a larger item, and not be individually releasable.  And so using story points for sub-tasks does not seem a good fit.  Would you please explain your usage?

 

In addition to Trudy's suggestion...

I see what you were trying to do with the dot-notation filtering, but the challenge is if that worked, the visible scope would reduce as you progressed, left to right, in the expression.  And so story points would not be visible "below" the level of components.

An alternative is to do this in one step using an iteratorsmart value list filtering, and a math expression.  Perhaps like this:

{{#=}} 0 {{#issue.subtasks}}{{#if(equals(components,"Frontend"))}} + {{Story points|0}}{{/}}{{/}}{{/}}

Kind regards,
Bill

Hi Bill!

First of all, thank you for your answer! Our usage of sub-task is like other jira users, piece of work contributing to a story. The point we are using story points in sub-task is that we are focusing on tracking the velocity of our product.

We are short of time(like all other companies), and our sprint cycle is about half length than usual, to keep our tension high. And we found out story level tracking makes us hard to find out what's happening in the sprint.

I really appreciate your answer, and you and Trudy really helped me! Thanks again!

 

Best regards,

Josh

Suggest an answer

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

Atlassian Community Events