How do i get linked issues to close when the primary ticket is resolved?

Hello,

Its my first question here so i hope that i've done this correctly.

We are new to JIRA at my company and are very much learning as we go.  It happens from time to time that multiple users have the same problem/similar problems at the same time.  We link these issues together with the "relates to field".

Question i have is that when we go and close one of the tickets that has a relates to filled in i would like the related ticket to be closed too.  How would i go about setting this up? Is it possible?

Thank you

Steven de Villiers

1 answer

It's very much possible. You will need the Misc. Workflow Extension plugin. 

In the "source" issue's workflow, set up a post-function in the transition to Closed. That post-function should trigger the transition to Close in the "destination" issue's workflow. 

I say "source" and "destination" because it's not mandatory that both issues use the same workflow. Just that they be linked by the chosen issue type, and that the named transition exists and is valid in the linked issue.

I suggest you use a specific issue link for these automated transitions. "relates to" is very generic, and you might want to use it for something else. I think it would be preferable to use "duplicated by" in your case.

 

I second the remark on using a specific link type; further, typically I close all duplicate tickets with a resolution of "duplicate", and a link to the primary, as soon as they are identified as duplicates.  That way there is only ever one one open ticket being tracked per issue.  That way you don't have to track things like FixVersion in multiple places (whereas, if you leave it open and only close it when resolved, there could be an expectation that the metadata stays current for all of them).

Thank you for the information Nicolas.  I will work through this with my team and see if we can get it all to come together.


Much appreciated

Steven de Villiers

Is this possible if the tickets are linked, but in separate projects?

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
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

100 views 0 5
Read article

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