Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I would like to know if it's possible to check for duplicate "Summary" field value when a new issue is created?

We have HelpDesk sending ticket to mail handler. Some times, HD sends same ticket 3,4 times. Which are created as duplicate tickets in JIRA.

I would like to compare new "summary"(JIRA issue field) field(HelpDesk ticket#) with existing fields in workflow function.

If it's same, I would like to delete the issue as it's created. So, only first time it creates issues not after that.

Thanks for you help..

8 answers

1 accepted

0 votes
Answer accepted

No, there doesn't exist a JQL which will help you. But there exists a plugin (SuggestiMate for JIRA) on the market place which helps you to find duplicates: https://marketplace.atlassian.com/plugins/com.suggestimate

Please check also this interesting articles:

http://blogs.onresolve.com/2010/03/audo-duplicate-search-in-jira/

I hope this will help you!

Thank you again for this. I saw both these plugins. But these good when a new issues is created manually..

But we have Mail handler to create issues. So, I was thinking is there any way to check in the workflow function ?

Thank you for your information..

It wasn't available when the OP asked the question, but you can now use the new Lookup Issues action under Automation https://support.atlassian.com/jira-software-cloud/docs/automation-actions/#Automationactions-Lookupissues. You can run a JQL to identify if there are already existing records with the same Summary field as the new issue. If so, cancel (or deleted if you'd like) the new issue automatically. 

See the example below.

Project_automation_-_JIRA.png

 

In which version was this "new action" added? I have a full paid version of Automation 7.2.3 and I do not have a "Lookup" action.

OK, this "Lookup" action is only available for the cloud version, and it looks like we can wait another 10 years, adding for the server version :(

@SHADOW Yea, we're on Cloud. Sorry to hear that the feature isn't on Server. 😓

I was able to automate the process of closing duplicates for the "jira server" version, below is the description of the automation rule:
- when the issue is created
- jql condition (any of your checks to limit the rule)
- Branch rule / related issues:
choose "jql",
in a jql request, you specify the rule by which the search will be
duplicates, for example "summary ~ {{issue.summary}} ..... AND resolution is EMPTY"
IMPORTANT the rule must contain "AND resolution is EMPTY", the search must be carried out among unresolved issues.
- The next item inside the "Branch rule" is to add "Link issue"
"This issue -> duplicates"
"Issue -> Triger issue"
- The next item inside the "Branch rule" I added "Add comment" - Enter the text that will be added to the already found open request, for example, the request number and a link to the found duplicate.
IMPORTANT by a duplicate I mean a new, just opened application.

As part of this rule, two or more issues will receive links that refer to each other.
The old issue will have a link to the new issue "duplicates" and the new issue will have a link "is duplicated by"

Unfortunately, further logical actions, as it turned out in practice, are not performed if they are specified in this rule.

You need to create a second rule that will close the issue containing the link "is duplicated by"
In rule "2" you need to add
- if block
"Related issues -> Linked issues"
"Link types -> is duplicated by"
- The next item inside the "if block" I added "Add comment" - Enter the text that will be added to this duplicate issues, for example "This issue is closed because it is a duplicate :)"
- The next item inside the "if block" needs to add all the necessary items for the correct closure of this issue, for example, all consecutive transitions to the "resolved" status, do not forget to set up the filling of the "resolution" field at this stage

And it's all.
All new requests satisfying the rule will be linked with the "is duplicated by" link, and rule "2" will correctly close these issues.

My Solution, because I have this problem as I'm typing this answer, is to create the JQL filter for the timeframe and project, in which duplicates were created. I then sort by 'Summary' and look at the matching summaries. I then purge the duplicates.

Is it automatic ?

What JQL are you using?

Chaya,

did you ever resolve this? We have a similar need for issues coming in from a third party system.

thanks,

Jon

Hi, you could use Script Runner to create a custom validator for the Create action to achieve this. In the code, check using JQL if the same summary exists and reject as required.

Good idea. I have the pluign already, don't know why I didn't think of that!

0 votes

any updates on this

Hi @Chaya Reddy nagella and @J Starbird did you guys resolve this thing? Can you tell me how to solve this, maybe without those Suggestimate plugin.. is it possible? Please let me know.. I appreciate your answer.. Thank you!! Cheers!

We ended up getting the Suggestimate plugin which works really well. The nice thing about the plugin is that while you're creating it, before you submit, it shows you possible dupe summaries.

The field they use can be added to other screens as well so even on old issues when you're grooming your backlog you can see possible dupes.

You could do all of that in code but then you have to maintain that code yourself so every upgrade will mean you having to work on it, this is why we bought the plugin.

Jon

Sorry I should have read the rest of the old post. For the Third Party incoming programmatic issues we did not get a solution. For now our Support folks just bring up Jira and do searches before they submit the new issues through their program.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you