getByUsername

    Signature

    HelperuserHelper
    Signature
    getByUsername(String username)
    Description

    Returns a user object based on a Username
    Returns a null in case

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

    Example use

    // If the remote issue assignee exists in our system, transition the issue to 'Waiting for support'
    if (userHelper.getByUsername(replica.assignee.username) != null) {
       issue.doTransition = "Waiting for support"
    }