Forums

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

Total Story Points Not Reflecting Onto Parent Issue Type

Mahnoor Arshad August 1, 2025

I have setup an automation rule for when 'Total Story Points' custom field changes on an Epic issue type the parent issue that is linked to that Epic as the parent should have the 'Total Story Points' reflected onto the parent ticket.

The audit log says that the issue SABELST-938 was successfully edited. However, on the actual parent issue which was linked to the Epic does not show that number. It just shows zero. Which it shouldnt. Seeing as the 'Total Story Points' reflected on the Epic is an actual number. Can someone help assist why it does not display?

Total Story Points.jpgCreate Variable.jpgSecond Image.jpg

2 answers

1 vote
Trudy Claspill
Community Champion
August 1, 2025

Hello @Mahnoor Arshad 

Can you add a log action within the For JQL branch to print the value of the smart value you are using to set your variable?

I think that not all custom fields accessible through Lookup Issues can be supported by the "sum" function. I suspect that you will find that {{lookupIssues."Total Story Points".sum}} has no value.

Mahnoor Arshad August 1, 2025

Hi @Trudy Claspill 

I have added a log action and it seems that everything executed properly. However, there is still no 'Total Story Points' number that appears from the Epic issue. Please see screenshots for reference. 

Automation Audit Log:

Audit Log Screenshot.jpg

Parent Issue: 

Note: Total Story Points is shown as zero when it should have a number. 

Issue Image.jpg

Trudy Claspill
Community Champion
August 1, 2025

Thank you for that additional information.

There is no value in the field because the variable you are using to set the field has no value:

Screenshot 2025-08-01 at 10.34.18 AM.png

 

As I mentioned, I think the "sum" function does not work with all custom fields.

Can you add a log action to print {{lookupIssues."Total Story Points".sum}} ? I think you will find that it also will show that the smart value has no actual value.

Like Bill Sheboy likes this
Stefan Salzl
Community Champion
August 1, 2025

Hi @Mahnoor Arshad 

2 points that came to my mind:

  1. when you set/calculate the sum in your variable you set the name of the field into quotation marks. smart values don´t use quotation marks for field names. furthermore they are even case sensitive. so in your "create variable" try to set following:
    {{lookupIssues.Total Story Points.sum}}
  2. variables are always stored as String. Therefore when you later use it you have to re-convert it to number. So in your "edit issue" action try to user follwoing smart value:
    {{totalstorypoints.asNumber}}

 

Besides that I have 2 questions:

  1. Why are you using a "lookupIssues action" in addition to a JQL branch?
  2. Why aren´t you using a "Parent branch" at all?

    image.png

 

Please let us know if this was helpful or if there still occus any problems and/or questions. If so please always send screenshots of the audit log for further analyse.

Best
Stefan

 

Like Bill Sheboy likes this
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.
August 1, 2025

Hi @Mahnoor Arshad 

Yes, and...to the note from @Trudy Claspill 

The Lookup Issues action for Jira Data Center does not support custom fields yet, and here is the suggestion to add those: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877

For your scenario, you will need to use the REST API to gather the work items and sum the field rather than using Lookup Issues.  Please see my comment in that suggestion for more details.

Kind regards,
Bill

Like # people like this
Trudy Claspill
Community Champion
August 1, 2025

@Stefan Salzl 

While we have concluded that the rule will not work as written I wanted to address your two questions on behalf of the question author.

The rule is triggered by the change of field value in an Epic, and the goal is to update the Parent of that Epic with a sum of that changed field for all Epics under the same parent.

The Lookup Issues action was being used to collect all the Epics under the same Parent.

The branch was used to shift focus to the Parent so it could be edited. The Branch/Related Issues/Parent is not used because the author is working on Jira Data Center, and that type of branch is valid only when the trigger issue is a sub-task.

Screenshot 2025-08-01 at 3.34.57 PM.png

Your image of the For Parent branch is from a Jira Cloud instance.

0 votes
Mahnoor Arshad August 1, 2025

@Stefan Salzl & @Bill Sheboy 

I modified my existing automation rule to go off of what @Stefan Salzl suggested. By adding the 'Parent' branch and removing the JQL. In addition, I also updated the edit issues smart value to 

{{totalstorypoints.asNumber}}

I executed this automation rule, however the total story points custom field on the parent issue now shows as 'none'. Not sure what the fix can be aside from going the REST API way. I would be open to other Jira automation suggestions. 

New automation.jpgnew automation two.jpg 

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.
August 1, 2025

As we already described, that field does not exist in the Lookup Issues result. 

Please see the other sources I provided for how to gather the information using the REST API endpoint for an issue search instead.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events