Hello,
I'm trying to display the total number of child issues linked to an epic on a custom field in the Epic.
I created an automation that would auto-populate a custom field called "number of child issues linked", but I can't get it to calculate the total sum of this count.
Here's my rule:

I believe the issue is with the Smart Value I'm using {{issue.size}}, it's not counting the total number, it's just displaying the number "1" when I make an update to any child task issues. For eg: I have 4 tasks that are child issues to an epic, I update all the tasks to my automation runs, and my custom field in the Epic (number of child issues linked) displays there is only 1 child issue linked.
I've also tried the {{lookupIssues.size}} smart value and it always returns 0.
Any ideas of what could work?