Appending Email Addresses to Comments Made by Anonymous Users when Using a Mail Handler

Usage FAQ

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

To append email addresses to comments made by anonymous users when using a mail handler, follow the instructions below.

tip/resting Created with Sketch.

There is a feature request at Appending Email Addresses to Comments Made by Anonymous Users when Using a Mail Handler. Vote to have this included in the product.

tip/resting Created with Sketch.

Follow the instructions in How to make a JIRA patch.

  1. Modify AbstractCommentHandler.java by adding 6 more lines after line 81, after the code block under if (body != null):
    
                             // append the From address at the end of  body
                         body += "\n[Commented via e-mail ";
                         if (message.getFrom() != null &&  message.getFrom().length > 0)
                             body += "received from: " +  message.getFrom()[0] + "]";
                         else
                             body += "but could not establish  sender's address.]";
    
  2. Place the compiled .class file under <jira-install/WEB-INF/classes/com/atlassian/jira/web/action/issue/AbstractCommentableIssue.class
  3. Restart JIRA

Tested on JIRA 3.13.5

Last modified on Oct 12, 2010

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.