Is it possible to set the CC field of an email from a custom field?

I use the JEMH for a Help-Desk solution and have the following problem.

I have create a profile, which stores the incomming email in a costum field. Also all CC and all further new emails (new email address) will add to this custom field.

Okay, so I have a custom field with e.g. 5 email addresses. If I comment the issue, the listener will send to each email address one email.

Ingoing Email:

So is it possible to create a custom field for the main email address (to:) and one for the cc email addresses? The first Email should add the "from:" address to a custom field "Request Email" and the "cc" addresses to a custom field "CC Request Emails". All further new emails (from: and cc:) should be added to the custom field "CC Request Emails" (If the email is not already available).

Outgoing Email:

There should be only one outgoing email. The email should be set to the main email address which is stored in the custom field "Request Email" and all addresses of the custom field "CC Request Emails" should be added as cc in this email.

Is this possible?

Thanks in advance

Regards

Benjamin

2 answers

1 accepted

Accepted Answer
0 votes

Hi Benjamin;

Ingoing Email:

So is it possible to create a custom field for the main email address (to:) and one for the cc email addresses? The first Email should add the "from:" address to a custom field "Request Email" and the "cc" addresses to a custom field "CC Request Emails". All further new emails (from: and cc:) should be added to the custom field "CC Request Emails" (If the email is not already available).

Historically this wasn't the case, there was only one Custom Field used for all email addresses that were to be part of notifications driven by JEMH IssueListener, there was not the capability to split sender apart and retain notifications to all. I can see the value of this, so have expanded JEMH in this area with the following:

- ability to refer to several TEXT custom fields containig email addresses in the IssueListener (the blocker to enabling notifications to the content of many fields.

- ensuring that the origianal senders email address does not then end up being added to the participant list.

In all notifications, each individual user gets a single notification, determined by the related IssueEvent.

This will be in the next release of JEMH, 1.4.7 in a day or two, JIRA6 only for new features Im afraid.

Outgoing Email:

There should be only one outgoing email. The email should be set to the main email address which is stored in the custom field "Request Email" and all addresses of the custom field "CC Request Emails" should be added as cc in this email.

No, not currently. JEMH fires emails to individuals, and follows the default JIRA notification behaviour in this. I've created the following to cover what I need to do to make that happen;

- https://thepluginpeople.atlassian.net/browse/JEMH-1467

I would see this working slightly differently, in that a single email would NOT include any direct addressees, that all recipients would be on BCC. The reason for this is that this avoids many duplicate comments being sent to all parities, leaving JEMH to process the incoming content, and drive notifications (once) again on update.

Hi,

Look to this answers , it can help you,

JIRA Notifications

https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions documentation he tells that i can add Email email = newEmail("someuser@e">CC mail in send custom email

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you