Story Point Calculation Based on Complexity & Time

John DiMaria January 9, 2025

I'm looking at how I can create an automation that calculates SP based upon the task complexity field (easy, medium, hard) and the time tracking field native to Jira. Task complexity is a custom field (10347) and it time tracking is in hours.

Still pretty new to this, but basically what I started off with was this:

{{#=}} {{#if(issue.customfield_10347.equals("Easy"))}} {{issue.timeTracking.timeSpent / 8}} {{/}} {{#if(issue.customfield_10347.equals("Medium"))}} {{issue.timeTracking.timeSpent / 8 * 2}} {{/}} {{#if(issue.customfield_10347.equals("Hard"))}} {{issue.timeTracking.timeSpent / 8 * 3}} {{/}} 0 {{/}} 

What I believe is happening is that the custom field is more or less failing and then i default into 0 SP.

1 answer

0 votes
Atlass Monster
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.
January 9, 2025

@John DiMaria  Hi

You should round the values, up or down. A value of 2.5 story points may not work. 

Look for round, ceil, floor https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

Suggest an answer

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

Atlassian Community Events