Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi everyone,
we are evaluating the JEMH plugin.
Since know we used a plugin developed by our own.
I try many funcionalities by JEMH but I dint' already get these:
Please any suggestion? Is possibile to do these by using JEMH?
Hi there,
Why JEMH splits Sender and Particpants
> I want to store in a custom fields the "to"
What happens when there are 20 recipients in To: ? The reason JEMH works as it does is simply because there is The Sender and Participants. The Participants can exist on To: or Cc: lines, mailbox addresses can exist in either set. So, JEMH initially extracts:
1) the sender
2) non-mailbox Participants
That's great, but at this point, JEMH starts to figure out 'who' those adresses are in JIRA, eg the Sender may be a User or JSD Customer, the other Participants may individually be a User, a JSD Request Participant or just an email user. JEMH splits out these addresses and handles them differently depending on what they are.
How you do what you want anyway
BEWARE. If you go storing email addresses in a custom field without paying attention to the nature of the recipient (eg a mailbox address) and you go and use this for notification purposes, you will introduce a mail loop.
The path to take here is with a Velocity Scripted Custom Field Default, defined within a Project Mapping. You can extract all the To: recipients from the $message, and just dump that out into a TEXT multi-line field.
https://thepluginpeople.atlassian.net/wiki/spaces/JEMH/pages/143491123/Use+Custom+Field+Defaults
The magic to get an array of recipients is:
#foreach ($aTo in $message.getRecipients($jemhUtils.getRecipientType('to')) )
$aTo.getAddress() ,
#end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.