Missing something easy, Project Keys, Subject Lines and Email Issue Creation

Jason White May 5, 2012

As I understand it (at least implied from here: http://confluence.atlassian.com/display/JIRA/Creating+Issues+and+Comments+from+Email#CreatingIssuesandCommentsfromEmail-Mailhandlers) ...

When using email issue creation, the handler/s should scan the subject line for project keys. matching keys will land that email in with the matching project. So ... let's say I have projects FOO and BAR (keys) and I created two mail handlers in that order ...

When I send an email with subject line 'BAR', it lands in the 'BAR' project. When I send something like 'BAR Crashing when I divide by 0', it lands in FOO.

Is there a way to customize the parsing or at least see/understand it better. I feel like I"m missing something obvious here, but my searches are turning up nothing for me.

OR ... is what I"m missing is that email issue creation takes a lot of manual triage/re-routing on the back-side and that's just the way it is?

2 answers

0 votes
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2012

As Renjith says JEMH can do that, JEMH supports directives, such that you could add #project=BAR to the subject and that would route the email to the project. I dont think an arbitrary substring match would be viable, in a large instance, a user is just bound to use a project key by accident...

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2012

The subject line expects the issue key for the email to land as comment in the appropriate issue. For creating new issues, the contents of the subject line does not matter, it solely depends on which project is configured for the mailbox. Could you please upload screenshots of both of the mailbox configurations in Jira?

Jason White May 5, 2012

So .. the assumption then is that there is a separate email box for each project? I was thinking you could create one mailbox and have it handle (potentially) multiple projects.

Still curious as to how it created different issues, but will have to do that later. Working remoted and can't grab screenshots etc.

Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2012

If you are looking for only commenting and not creating of issues you can use a single mailbox. Jira will route all comments to the right item based on the issue key.

If you need to use a single mailbox with more control you need to use JEMH.

Suggest an answer

Log in or Sign up to answer