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 :
import com.atlassian.jira.component.ComponentAccessordef field = getFieldById(getFieldChanged())def userName = field.valuedef email = ComponentAccessor.userManager.getUserByKey(userName)?.emailAddress
It looks like you're new here. Sign in or register to get started.