I have Support Emails from two email addresses running into one JIRA project using JEMH.
To do this, I'm forwarding the emails from email@example.com to firstname.lastname@example.org, and entered both into the "Catch Email Address" field in the JEMH Project Settings.
However I would like to differentiate the Issues based on which address the email was sent to (preferably by a field).
I currently use the following settings:
This creates a for each incoming mail an "External Mail" field in the issue with the senders Email address.
If I want to have a similar field for the addressee, there are the "Addressee Processing" options. According to https://thepluginpeople.atlassian.net/wiki/display/JEMH/How+do+email+address+get+mapped+to+custom+fields I have entered the following values:
I have correctly set the screens for the Addressee CustomField (same as for External Mail), yet it doesn't appear in the issues.
PS: email@example.com is also a JIRA user, firstname.lastname@example.org is not.
Thanks in advance
> What do I have to do to get the Addressee field displayed in the issues?
Simple enough, use a Project Mapping for the target project, with a Domain rule for the inbound address in each case, then you could set the address statically for a given TEXT single line custom field. This would then expose the TO: address in a custom field. Then, you would be able to use that in the Event Listener.
> Would this even work to differentiate between email1 and email2 since they both come from the same mailbox?
So long as the original recipient address is listed somewhere in the email this should be possible. Most mail servers retain the original TO: address, others put it in an additional EmailHeader (this is where the JEMH CatchEmailHeader field comes in, you nominate where to look)
> If you can provide a solution, could this field be used to automatically assign the incoming issues to certain users?
Use each domain Rule to nominate an Assignable user as the assignee in each project.
Note: the Default Project Mapping has no rules, its intentional, use a different project for the Default Project Mapping that your expected project, its there to handle addressees that are IN the catchemail list, but NOT mapped.
Thanks so much for the help! Project Mappings were the key.
Here is my solution, for anyone interested:
Email domain mapping: email@example.com
Match against the addressee: [x]
User Custom Field: Addressee == email1/2
Assignee: set default Assignee
(Only question I have left is: What does the Event Listener have to do with this? I didn't change anything there...)
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot