Our JIRA Core instance creates issues via email. We would like to ensure that emails with the same Summary line (with the same sender) update existing issues rather than create new issues.
For example:
Can anyone offer insight here?
Jira has existing functionality that will put emails as comments when the email subject contains an issue key.
Can I ask more about the use case you're trying to solve? Is this for a service desk where customers email issues through?
I may have a hacky way to help using automation but it might not work 100% of the time.
Thanks,
John
Thank you, @JD.
Yes, we utilize the reply function to create additional comments on the same issue.
However, in this case, we are sending 2 distinct emails (from the same sender) to the catch-mailbox for JIRA Core. The JIRA system is reading the second email as different and creating a second issue, rather than recognizing it as a reply (b/c it is technically not) and applying comments on the primary issue.
Unfortunately, the system that generates the emails does not read back from JIRA to get the Issue Key number. However, both emails do contain a unique Work Order number generated by our system that spawns the emails.
I was hoping to use the Automation feature to assist with this, but haven't figured out how to do that yet either.
I'm interested in any advice!
Thanks so much!
Ellen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok so this is a bit hacky and I have not tested all cases (but I think it works). I'll explain each component and configurations below the image.
The automation is run whenever a new issue is created. It checks to see if any existing issues have the same issue summary and reporter. If it finds one it will add the new issues description as a comment to the existing issue and then transition the duplicate issue (the new issue) to done.
You will need to do some improvements to the JQL to reduce the impact on your Jira instance, I'll run through it below.
Components
reporter in ({{issue.reporter}}) AND summary ~ "{{issue.summary}}" AND created != "{{issue.created.jqlDateTime}}"
AND issuetype = <input the type of issue your emails make> AND status in ("To do", "In Progress")
Let me know how you get a long. The main issues I ran into was my JQL being slightly wrong. So you might want to do a JQL search in the issue navigator first and then replace parts with smart values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, @JD
I really appreciate you taking the time to experiment for me!
Unfortunately, I am experiencing 2 separate hurdles with this solution:
I am not sure if or how to enable these features within the add-on. We have version 7.2.2 of the automation add-on to our Jira Core 8.7.0 instance. Am I missing something that needs to be turned on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @JD
I was very interested in your example. I had an issue with special characters in summary but I got help from the support.
Using this query will fix it
summary ~ "\" {{ issue.summary }} \""
I'm now using following JQL for the branch and it's working fine
reporter in ({{issue.reporter}}) AND summary ~ "\"{{issue.summary}}\"" AND created != "{{issue.created.jqlDateTime}}" AND status != Ready
(for all germans: status != Fertig )
thanks a lot
Volker
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.