getUserByUsername

    Note: For Jira Cloud use with nodeHelper.getUser instead. This helper does not work with Jira Cloud.

    Signature

    Helper nodeHelper
    Signature
    getUserByUsername(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 (Jira only)
    Introduced in 0.8

    Example use

    // assign the issue to us if the remote has been assigned to one of ours
    if (nodeHelper.getUserByUsername(replica.assignee.username) != null) {
        workflowHelper.transition(issue, "Waiting for support")
    }