Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

From email address pre-fixes with Lead name

Manohar Parelly November 30, 2015

Hi,

When I create an Issue, in email notification, I expect the "From email" address to be pre-fixed with the logged in user name who is actually creating the issue. But in our case, it is pre-fixing with the Lead name as in below From address (assume Manohar Parelly is assigned as Lead in JIRA project).

From: Manohar Parelly (JIRA) [mailto:jira@xxxx.com]

  

Please suggest how can I prefix the logged in user name instead of Lead.

  

Regards,

Manohar Parelly

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Manohar Parelly December 3, 2015

Can you please let me know if changing above code to below (to pass logged in user to method createIssueObject ) will have any impact?

 

User user = getLoggedUser();

// some code issueObj.setReporter(user);

//some code

Issue issue = ComponentAccessor.getIssueManager().createIssueObject(user, params);

0 votes
GabrielleJ
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.
December 1, 2015

JIRA won't use the "logged in" user name for email notifications. JIRA will use the email address it is configured to use. If you have correct rights, Check your Project Notification Scheme in your Project Administration Screen then check the value of the "Email" field right in the center of the screen. 

Michael Matonte December 1, 2015

Thanks for the response. Yes, it is using configured email address, but the email is getting pre-fixed with LEAD name in the from email address like "From: Manohar Parelly (JIRA) [mailto:jira@xxxx.com]" where Manohar Parelly is the LEAD assigned to this project. Either I do not want to prefix with any name or wants to prefix with logged in user name. Please check below image and suggest.

 

from email adsress.PNG

 

GabrielleJ
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.
December 1, 2015

That has nothing to do with the JIRA configuration. The email says it was from "jira@xxx.com" on which according to your email directory Display Name from its Address Book is Manohar Parelly.

Manohar Parelly December 2, 2015

The display name is not same in all scenarios for same email id "jira@xxx.com". It is logged in user name in most of the notification mails. If it is from the Address Book, every notification mail shoud have the same name, right? Actually we used custom plugin here to create sprint approval issue, and in code Project Leader user details being passed to API in issue creation as below. Though issue reporter is set to logged in user name, the user object being set is Project Leader's. Is that causing to Pre-fix project leader name to from address "jira@xxx.com" for sprint approval notifications? User user = UserUtils.getUser(project.getLeadUserName()); // some code issueObj.setReporter(getLoggedUser()); //some code Issue issue = ComponentAccessor.getIssueManager().createIssueObject(user, params);

TAGS
AUG Leaders

Atlassian Community Events