Display user's email ID to a custom field.

Hi All,

We have a user picker custom field called "Test User" and want to display email id of this "Test User" to another field. So, please suggest the best way to do this.

Please let me know if need any additional info.

Thanks,

Sanu P Soman

1 answer

1 accepted

1 vote

You'll need to do some coding for this - the email address of a user is not pulled into the html for any given page.  A simple derived field should do it (I'd use the scripted field functions in the script runner)

Bear in mind that you could be exposing personal information though, and you'll be bypassing the built in "only certain people can see other users email address" unless you code for it specifically.

Thanks for the reply. Can you please share some example?

I've not written code for that before, I just know I could if I tried, as I've done other stuff with user objects. What I could give you isn't going to get you very far - it really is "install script runner, write a scripted field that grabs another field value, reads a user from it and extracts their email address"

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

684 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you