Hi,
I'm looking to get Email of the user - here I'm getting value from the customField in script as 'FIRST LAST(FIRST_LAST) - whereas I'm trying to fetch the emailAddress of the user got from the customField.
def user12 = issue.getCustomFieldValue(customFieldManager.getCustomFieldObjectByName("QA Owner")).getDisplayName
There is a getEmailAddress() method that you can use.
https://docs.atlassian.com/DAC/javadoc/jira/reference/com/atlassian/jira/user/ApplicationUser.html
Thanks Paynee. Seems though it was showing error- still that works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.