Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Link All Duplicate Tickets Together and Close New Duplicates Using Automation

Summary

Sometimes tickets with the same summary or same summary and description are created in your Project, which can make a mess of all of the tickets in your queue and knowing which "Password Reset" ticket (for example) to work on.

As an alternative to this you could use an Automation For Jira Rule to link all duplicate tickets together moving forward and close new duplicated tickets as well. This will ensure that all tickets with the same summary or same description - or - same summary and description are linked together.

Please note that in this example we are only looking at linking/closing duplicate tickets that have the same summary. You can also add a Description equals Description from the Trigger Issue Field Condition or switch that out with the Summary Condition as you see fit.

Basically you will need to configure a Rule with the Issue Created Trigger, using a Branch Rule/Related Issues action for JQL for that particular Project.

Please know that you will need to refine the JQL for the Branch Rule a bit further to avoid causing Performance Issues and Automation Rule Throttling, this setup is just an example to link all tickets on that project with the same Summary together.

Ultimately the first JQL Branch Rule/ Related Issues action will look like the following, where the Link Issues to Trigger Issue Action uses the Duplicates Issue Link Type:

Screen Shot 2022-11-01 at 4.51.47 PM.png

Then we will have a Current Issues Branch Rule which will essentially look at the Trigger Issue and Close (Status) that new "Duplicate" Issue as a Duplicate (Resolution Field), and add an Internal Comment to that Trigger Issue that it is a Duplicate issue. 

You can also use more Conditions for these Branch Rules as you would like too, such as the Reporter is the same, as well as the Summary/Description fields:

Screen Shot 2022-11-01 at 4.54.55 PM.png

After that you will configure a second rule that has the Allow rule trigger checkbox checked to ensure it runs when we link the Issues together. This will use a Issue Linked Trigger with a Destination Issue Branch Rule that will look back at the Trigger issue and essentially link all tickets that have the same Summary together and ensure all of these cases have the same amount of Linked Issues:

Screen Shot 2022-11-01 at 4.56.29 PM.pngScreen Shot 2022-11-01 at 4.56.11 PM.png

Once this is all setup, its smooth sailing from here!

Get this person some tater tots!!  :) 

Screen Shot 2022-11-01 at 5.14.27 PM.png

 

Cheers,

Christian B.

2 comments

Kogut, Dylan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 3, 2023

Hi Christian,

 

I think the "For: Current issue > Summary equals the Summary from the Trigger issue" should always pass as True wouldn't it? The rule is always run when an issue is created and it is comparing the summary of the trigger issue against the current issue (which is the same if a unique ticket is being entered for the first time).

 

Please let me know if I'm wrong but in our testing that condition is always passing and closing out our new customer tickets. 

 

Cheers

mararn1618 _secretbakery_io_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 11, 2024

Hey @Dylan,

imo the second part of the automation doesn't make sense. I wrote another HowTo, that shows how to create an automation to

  • link duplicates
  • close duplicates (set their status)
  • using Jira Automation

See: HowTo: Jira Using Automation Rules to manage Duplicate Tickets 

 

This one should work, hope it helps. :)

 

Kind Regards,

Markus // Author of Duplicate AI 

 

Like Vikram Rao likes this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events