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
Calling all Confluence Cloud Admins! We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...
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