Can I get email address of user custom field in behaviours?
I have a customfield -type- user.
Is there a function that, using behavior, pull out the email of the entered field on the portal
you get the string value of the field in the behaviours, so you need to use userManager to get ApplicationUser object and retrieve email from it :
def field = getFieldById(getFieldChanged())
def userName = field.value
def email = ComponentAccessor.userManager.getUserByKey(userName)?.emailAddress
...igure out how fast you can release, so that you stay true to your development plan and the needs of your customers. In this article, we will introduce a few practical ways of documenting your release n...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events