Hello ,
I wanted to sum custom field values of all subtask for respective parent issue type .
Case :
Parent issue Type have 3 subtask .
In all sub-task there is custom field name "A".
I wanted to make a new field in parent issue type that calculate sum of A of all respective sub-task .
1st subtask -A=30
2nd subtask A=30
3rd subtask A=20.
Parent ticket will have "new_field"=30+30+20.
Could anyone help me to achieve through which scriptrunner and groovy script .
Please let me know if I fail somewhere to clear my requirements