Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy values when bug is marked as duplicate

Chris K.
Contributor
August 24, 2016

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

1 vote
Jonny Carter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2016

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

1 vote
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2016

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events