JEMH - Disable comments from Mails

I've been trying to setup JEMH to create issues fro emails.

That i have been able to do, but then i, somehow, setup to create comments when an email with the same subject is sent.

On a meeting, it was decided that this is not the behaviour that is wanted because its normal to receive emails with the same subjects, and every mail should be a new issue.

Where can I configure that?


1 answer

1 accepted

0 votes
Accepted answer

Hi Santiago,

In the normal email-reply scenario, commenting behaviour is driven by two things;

1. There is an issue key in the subject (ABC-123). Its reasonable to expect a reply in this instance to comment on the relateed issue.

2. JIRA 5.2.3+ ; Its a reply to an email that has been sent to JIRA already (that created ABC-123). Even without the remote user knowing the issue key, by default JIRA will associate this 'reply' with ABC-123. This solves a problem where otherwise, a new issue would be created.

JEMH doesnt have subject-based matching for commenting purposes as its too error prone, so Im not sure what you have configured.

You say you want 'new' emails to be a new issue, well, they should be, but subject to 1 & 2 above. If you want to disable some of the above its possible with JEMH:

1) Disabling Issue Key recognition:

Set Profile > Email > PreProcessing > Subject IssueKey (comment) Regexps, the value is normally used to match a specific JIRA instance by the email subject [MYJIRA] ABC-123, so, you can set a guaranteed failure to match with 'Never Ever Match 1234567890' so stop subject key matching.

2) Disable reply-to issue location:

Set Profile > Email > PreProcessing > Disable Thread Checking

Thanks Andy, i must have been mistaken then, everytime i tried the profile i started seeing some comments instead of just new issues. I thought the subject of the mail was the reason it was causing it but it seems that answering or forwarding those emails were the events that were triggering comments

I will have to test if its indeed like this, but now that you mentioned i think im pretty sure that was the case

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Want to know how Atlassians monitor their enterprise deployments?

At Atlassian, we believe in our own products – that's why we use them, even at the enterprise level. Doing so gives us first-hand experience of how they perform at scale; to do this, we monitor each ...

84 views 2 9
View post

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