Need Help with Nunjucks Template to Calcuate Story Points from SubTask

Lokesh Singh Sisodia December 24, 2024

I am using the script below to sum all child subtasks if Story Point changed in any one of them and want to update in the Parent task.

 

I am purpose fully using JWME and not Global automation for some reason. Help on priority is appreciated. 

 

similarly will be trying for Linked issues as well.

 

{% set totalStoryPoints = 0 %} {% for subtask in issue | subtasks("customfield_10004") %} {% if subtask.fields.customfield_10004 is not undefined %} {% set totalStoryPoints = totalStoryPoints + subtask.fields.customfield_10004 %} {% endif %} Status: {{ subtask | subtasks("status") | first | field("fields.status.name") }} {% endfor %} {{ totalStoryPoints }}


0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events