I have Support Emails from two email addresses running into one JIRA project using JEMH.
To do this, I'm forwarding the emails from firstname.lastname@example.org to email@example.com, 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: firstname.lastname@example.org is also a JIRA user, email@example.com 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: firstname.lastname@example.org
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...)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs