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 }}
Hi @Lokesh Singh Sisodia , thanks for your question.
Have you already checked out the product documentation for how to use the Set issue fields post function?
https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849/Set+issue+fields
If not, please check this out.
If so and you're still not getting anywhere, I usually recommend to contact the vendor for support in these specific use cases as they should be the product expert https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions-jmwe
Best wishes
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.