Copy values when bug is marked as duplicate

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?

2 answers

Chris,

The steps looks fine. Do share your implementation, that will also help others. In case an event is not triggered by workflow transition you can also use Listener that doesn't rely on a post function.

Ravi

Yup, that's how I'd do it. Sharing an implementation would certainly be cool of you. smile

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

143 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you