If an instance has multiple users with the same email, getUserByEmail retrieves only the user who was created first.


    getUserByEmail (String email)

    Return a user matching the specified email address.
    Returns a null in case:

    • the user email address is not found
    • the Exalate user has no 'Browse Users' permissions
    Introduced in0.8


    Jira Cloud

    According to the Atlassian changes in user privacy policy, Jira Cloud user may hide the email address in the Atlassian account settings.
    This affects user fields synchronization since Exalate uses API to search by email. Therefore, make sure that the email is visible for the Exalate app in the Atlassian account.

    Azure DevOps

    For the method to work on Azure DevOps, make sure that the user is part of the team that has access to the Azure DevOps project.

    The Signature introduced in 0.8 works for Azure DevOps until version 5.4.0.

    Example use

     //If the user exists set the custom field value to 'Yes', otherwise set the value to 'No'
    issue.customFields.internal.value = nodeHelper.getUserByEmail( == null ? "No" : "Yes";