We are using Story points on Sub-tasks. I have been trying to sum up all the story points on sub-tasks to their corresponding Story parent in a Scriptrunner scripted field. It's probably something really simple. I am not picking up the story points, it is only returning 0,
import com.atlassian.jira.issue.Issue
def subTasks = issue.getSubTaskObjects()
def intStoryPoints = 0
subTasks.each {
if(getCustomFieldValue("Story Points") != null)
intStoryPoints += getCustomFieldValue("Story Points")
}
return intStoryPoints
Hi Peter,
there was a someone who posted whole Script for Scriptrunner to do it in here https://community.atlassian.com/t5/Jira-questions/Using-Scriptrunner-to-sum-sub-tasks-story-points-to-parent-issue/qaq-p/1582757
There is also an example for sum-up of story points on adaptivist docs https://docs.adaptavist.com/sr4jc/latest/features/script-listeners/script-listener-examples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.