Populate a Scripted Field with the Sum of All Values Added or Updated in a Number Field
Overview
By default, when an issue is created, if no value is inserted into the number field configured in this script, the scripted field result is set to zero. When a value is added or updated in the number field, the scripted field uses the Change History, gets all the "toString" values and sums it up.
Example
As a project manager, I want to know the total expenses on a particular issue. This script enables me to calculate that total and populate a scripted field with it.