When Bug A gets resolved as a duplicate of Bug B, I want to copy certain field values from Bug A to Bug B. I'm trying to figure out the best way to do this. The only thing I came up with is to create a post-function script on any transition that could set the resolution and:
1) check to see if the resolution was duplicate
2) look at Bug A's linked issues and find the duplicate issue ID
3) grab the field values we want from Bug A
4) copy them over to Bug B
Is that the best way to do this?