From address change in jira notification

Vinutha Vasan September 12, 2011

Hi All,

When Jira sends an email based on someone updating a Jira entry, the “From” email address isn’t actually that person’s real email. It shows the person name and email address will be the address which we used while configuring SMTP mail server.

Can this be modified, so that the email, sent from Jira, will have the person’s real email address (Which is accached to their jira user profile) as the “From” address?

Thanks,

Vinutha

5 answers

1 vote
Jim Birch
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.
September 13, 2011

Is that what you really want? A reply to a Jira comment should go to Jira comments, shouldn't it? This keeps everything in the loop.

Here's what we do:

1. Change our reply header to say that the message is from Jira, but name the author, eg,

JIRA (by: Smith, Steve) <jira.issues@our.domain>

The email from setting for this is:

JIRA (by: ${fullname})

2. Add the POP3 Service using the Regex Comment Handler with the handler parameters set something like:

reporterusername=jiraadmin, createusers=false, splitregex="=-=-=|\s*_*\s*From: JIRA \(by:", bulk=delete

The splitreg value does two things

  • It chops original Jira notification off the comment. (This regex works for our Jira 4.1 but may need to be updated for the new Jira 4.4 mail format.)
  • It allows users to put a the character sequence =-=-= in their email signature to chop the signature, and any mail hisory from the comment. Long histories make comments hard to read. The =-=-= sequence can be greyed out to near invisible in html format mail signature and looks ok in plain text email. The sequence is very unlikely to get a false hit, that is unless you have an ascii box nut on staff :)

With this in place, the user recieving a notification can hit reply to add a comment to the issue; this will be logged in the issue and go to all the normal notification targets.

The other side to this scheme is to allow people to easily send emails that are CC'd to Jira, and to forward emails into Jira issues. This needs the issue id somewhere in the subject line, eg, "Problem with widget [PROJX-1103]" and the handler will add the email as an issue comment, until the =-=-= is encountered.

This keeps all the issue comms right where it should be: in the issue!

0 votes
Jim Birch
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.
November 19, 2014

This still requires a plugin.  

The reply goes back to Jira.  

Note that there's a big advantage in replying back to comments if you are interested in auditability/history because it keeps the issue dialogue with the issue rather than scattered around various mailboxes.   IIRC there is a plugin that will do some cleanup on incoming mail whitespace, etc.  My technique above strips the previous comment from the reply comment.  Personally, I would much rather have a junky record than none at all.  

0 votes
Melissa Thornton November 19, 2014

Does this still require a plugin?  I do not want my users to reply back to the comments area because of the way it looks. 

0 votes
Tibor Hegyi _META-INF_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 17, 2013

Hi, though the question is quite old, Email This Issue can easily do this. You can configure automated event notifications that will be sent with the user's email in From.

Tibor

0 votes
Radu Dumitriu
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.
September 12, 2011

Not with the standard send email mechanism. There may be plugins that will do that.

Suggest an answer

Log in or Sign up to answer