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
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.