Merge Issues by E-Mail-Subject

Dear community,

we are using JEMH and are quite satisfied with. We use it to create issues from mails send by our application in case of system-crash. Because the users retry the crashed feature in the application, we get several mails with the same subject containing the error-code. Is it possible to append these mails as a comment to an existing issue having the same subject or something like this?

Greetings from Hamburg, Germany

Jan Christian

2 answers

1 accepted

1 vote
Answer accepted

Hi Jan,

One of the more advanced Field Processors that are responsible for processing incoming mail into a common format for JEMH use is the Regexp Field Processor. With this feature, it is possible to locate within an incoming email, an ID that is unique to the 'conversation/usse/case/etc' of a remote system. With such an ID, JEMH Regexp Field Processor can store that value in a custom field. New emails (even duplicates) that contain the same ID would then be added to the first issue found with that (unique) value.

There is a tutorial available at:


If you do not have a unique ID and only have a basic text subject, this isn't currently handled, I did once implement a subject matching feature but the use and effectiveness of that feature was surpassed by JIRA 5.2.3 Mail Thread management, so it was dropped. If it is still a desired feature, please log a request at JEMH Jira and I'll get to it when I can.

Could you not solve this problem in your application?

If an email for this problem has been sent less than a specific time ago, don't send a new email?

Just wondering.

Hi Peter,

thanks for your reply. We already thought about this approach. But we believe that this solution would be very time expensive. But even if this would be possible, we won't solve the problem. Every possible time slot we define would end somewhen and then we will recieve another mail producing another duplicate JIRA-issue. This is why we thought about a "merging-approach" in JEMH.

Greetings from Hamburg

Jan Christian

JEMH could get smarter than just appending a comment, it could check the last comment, body, and if found to be the same, ignore it...

Hi Andy,

I followed the tutorial you mentioned. And as you said, for each equal mail a new comment is added to the issue. How do I configure JEMH to identify same comments and ignore these mails?


Jan Christian


I am sorry. I think this is a new question. So I opened a new topic at


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


213 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you