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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.