Forums

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

Summing Story Points from story subtasks

Babi Teixeira
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2020

Hello! 

 

I'm triyng sum  story points of subtasks and replaced total value on Story points (in its parent), on the NEXT GENERATIONS version of JIRA.

But, my rules return this error: "Error while parsing additional fields. Not valid JSON."

Here is my Json:

{
"fields": {
"Story point estimate": {{issue.subtasks.Story point estimate.join(" + ").asJsonNumber}}
}
}

When i add quotes, the error returned is "Fields is not a number". 

When I change the value to a generic number, the rule run without errors.

 

Someone can help-me to mount this JSON?  

 

1 answer

0 votes
Jira Guru
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.
August 15, 2020
{
"fields": {
"Story point estimate": {{#=}}{{subtasks.Story point estimate.join(" + ")}}{{/}}

}
}

Suggest an answer

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

Atlassian Community Events