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..
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good idea. I have the pluign already, don't know why I didn't think of that!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chaya,
did you ever resolve this? We have a similar need for issues coming in from a third party system.
thanks,
Jon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.