Hello,
I would like to know how I can sum the value of the custom field "# of major comments" from all the childs of an epic, and store the sum result in the custom field "# Total major comments" for Jira Data Center instance, using automation rule or Scriptrunner.
Thank you in advance
Hi Hakima - Welcome to the Atlassian Community!
You should be able to create an Automation Rule to do this.
Follow this guide in the Automation Rules playground and let us know if you run into any problems.
https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/9919294
Hello @Hakima Bilal
Welcome to the Atlassian community.
The following post asks about summing up Story points, but I believe you can use the same logic with your custom fields.
Answer by @Gareth Cantrell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't believe that's true. Custom fields cannot be summed using the normal .sum functionality
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thought the same thing but ended up having to resort to a workaround using "Send web request" action. More details found here: https://community.atlassian.com/forums/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
This is Jira Datacenter, not cloud. For Cloud, .sum of custom number fields works fine, so I'm told.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That post is very old. And this one is two years old. If you have a specific example you need help with, then create a question for folks to respond to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Old or not, I stumbled upon it. Others are will to. Simply trying to share additional knowledge and prevent others from having to go through the struggle I went through to workaround .sum not working. Thanks John!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.