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
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
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