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 }}