Forums

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

Automation - Duplicate Finder

S
Contributor
July 11, 2023

Hi

I have attempted to write a Automation to find duplicate issues on Jira based on my business key (ACtor Name and Movie Name)

 

Just being creative to see if Automation can solve a duplicate finder problem :)

 

Duplicate Fninder.png

project in ( XX ) AND issuetype = NC and "Actor Name" = {{triggerIssue.customfield_10102}} and "Movie [Number]" = {{triggerIssue.customfield_10088}}

 

Problem breakdown: My goal is to search for Actor Name and Movie name from existing issues and compare it with the newly issue that is being created....

It just adds a comment - "Duplicate" when it finds the matching condition.

 

 

Problem is that is adds for everything - even the ones that are not duplicate :(

 

 

Appreciate any help

 

2 answers

2 accepted

1 vote
Answer accepted
Irina_Bel_Stiltsoft_
Atlassian Partner
December 20, 2023

Hi @S ,

Here's a video where I show a way to link duplicate tickets. It worked out for me, may you'll find it helpful too.

1 vote
Answer accepted
Nanda
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2023

So what you are trying here is an IF condition instead you should try using a Branch.

The IF condition simply matches issues in the JQL and the issue created gets matched against it and the comment "Duplicate" is added as the created issue itself matches the condition.

Instead, use a Branch with JQL like belowScreenshot 2023-07-12 at 2.22.26 PM.png

Also, I would suggest including "issueKey != {{triggerIssue.key}}" in your JQL to prevent checking on the triggered issue.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events