I'm writing automation that, when the original estimate of story edit or fill, then the value of the original estimate in epic (that have been added before) subtract from all the value of its original estimate of story. For example, we have epic A (original estimate is 3h) and story 1 and story 2 add to epic A. When story 1 filled original estimate 1h, the value of original estimate in epic will be 2h. And when story 2 filled original estimate 2h, the value of the original estimate in epic be 0h. I thought that I can do it with automation with smart value, but if anyone has any idea I would appreciate it.