Forums

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

Goal is to compute percent complete for Sprint Story points

Dipen July 1, 2024

Team

           I have 2 rules 

1. that gives me the total # of story points for all issues within a Sprint after the Sprint ends and

2. that gives me the # of story points for all issues that are in Done status after the Sprint ends

 

I am trying to compute the percent complete using this formula

% complete (at the end of Sprint) = Story points estimate completed/Total Story points estimate

Here's what I have an automation rule crafted so far, but have not had success with computing the percent complete

Screenshot 2024-07-01-174820.png

Any pointers would be greatly appreciated

There are no errors when the rule runs. 

But the email simple outputs the formula. not the computed values

Thanks

KD

2 answers

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.
July 1, 2024

Hi @Dipen 

This is a frequent question in the community, and you may calculate the percentage complete (by story points) using one Lookup Issues action and no Created Variables for intermediate steps.  To do this, please see this earlier post:

https://community.atlassian.com/t5/Automation-questions/Re-Calculating-percent-complete-based-on-story-point-wei/qaq-p/2624238/comment-id/9570#M9570

In your case, you are using a team-managed project, so substitute the smart value Story point estimate rather than Story points in the expression.

Kind regards,
Bill

0 votes
Trudy Claspill
Community Champion
July 1, 2024

Hello @Dipen 

What are the details of your second Create Variable action.

What are the details of the Send Email action?

Add Log actions before the Send Email action to print the values in your variables into the Audit Log.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-action

Variables store their data as strings. You may need to convert the strings to numbers when you use them in your formula.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#asNumber

Dipen July 1, 2024

Trudy

         Here are the responses to the questions you posted in the message

1.details of your second Create Variable action.

Screenshot 2024-07-01-2nd-variable.png

2.details of send email action

Screenshot 2024-07-01-sen-email-details.png

 

Working on log Actions.

Will update you shortly on that

 

Thanks

KD

Trudy Claspill
Community Champion
July 1, 2024

Your syntax in your email is also incorrect. You need to treat those variables like Smart Values, with curly brace surrounds and following the required syntax for using math expressions with Smart Values.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

In addition, you might need to convert them using the asNumber function, as I mentioned in my previous response.

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events