Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JEMH: Field for Recipient/Catch-Mail Address

Birgit Klinc April 16, 2019

Hi,

we have 5 alias E-Mails running into one JIRA project. We’ve set all those Emails in “Catch E-Mail Address”. Now we would like to see for each issue in a certain field to which Address an Email was sent. 

I’ve looked around a little bit for an answer and found that “project mapping” could do this. But like in this case: https://community.atlassian.com/t5/Jira-Core-questions/JEMH-Field-based-on-catch-mail-address/qaq-p/264738 it works through domain mapping – which is in my opinion not available in our JEMH Version 2.2.26. When I go to Profiles -> Configure -> Project and “Mapping” only “Issue Attributes”, “Groups”, “Issue Security”, “Attachment Filters”, “Custom Field Defaults” and “Workflow” are available. So I tried to set up “Custom Field Defaults” for the Recipient Mail Address with a Velocity Scripted Value but I don’t know if this is the right way or what Value should be set to get the particular Mail Address to which the Mail was sent.

Thank you for your support!

2 answers

1 accepted

0 votes
Answer accepted
Mike Harrison
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.
April 26, 2019

Hi,

Domain rules are available on your version (and pretty much every other one!). Please see the wiki for information on how to use it: How to use Project Mappings

You can use domain rules (that are looking at the "addressee" address) to set static custom field values. This is the easiest way to achieve what you are looking for.

If you cannot see the "domain rules" section, make sure you are looking at a non-default project mapping.

Birgit Klinc April 28, 2019

Thank you very much, the project was set to "default" instead of "non default"; now I can see the domain rules section!

0 votes
Birgit Klinc April 26, 2019

For anyone who's interested: This velocity scripted value shows the receiver email addresses:

#foreach ($recipient in $message.getHeader("To"))
$recipient
#end

 

Does anybody know if there's a possibilty that the receiver is only shown with one email address? Because in the new created field the receiver mail address is shown twice: 

"name@domain.com" <name@domain.com>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events