User Picker For Emails

Sergeo Khomutetsky March 18, 2013

Can someone please suggest how to add a select or multi-select list field to a screen in JIRA 4.4 that allows us to select the email address tied to the user's profile. Ideally, I would like for the end user to be able to select a user in the Username/Assignee field, and the email automatically appears in an adjacent (email address) field. We'd also like to be able to select mutile users/email addresses. I believe the solution may be dropping in a script in the field's description, but I'm not sure what that code should look like or even if that is the best option.

BTW, we don't need to be able to send the email, just select and display the one tied to the user(s) account.

Thanks in advance!

Sergeo

1 answer

1 vote
Alex
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2013

Sergeo,

I've searched and searched in our documentation and I think I have a solution although its not ideal (I hope someone can help find an easier way to do this...)

First, you will have to create a custom field to display the user email address in the issue. This documentation provides step by step instructions for how to create a custom field (although it's written for JIRA 5.0): https://developer.atlassian.com/display/JIRADEV/Creating+a+Custom+Field+in+JIRA

Second, you will have to write some Javascript to display a field based upon another field selection. This documentation provides an example of how this is done (although it's written for JIRA 5.2): https://confluence.atlassian.com/display/JIRA052/Displaying+a+Field+Based+on+Another+Field+Selection

So aside from providing you with documentation for later versions of JIRA that may not apply, I haven't really helped. I did look into the Atlassian Marketplace to see if I could find someone else who could help and I found Buzz (https://marketplace.atlassian.com/plugins/com.mizan.buzz) Its a plugin that displays a users phone number when they are assigned and its for JIRA 2.0.

Now I know its not quite the same use case, phone number is not email, but maybe @Mizan can provide an update on how to get email address to display when a user is assigned.

- Alex

Suggest an answer

Log in or Sign up to answer