hasRole

    Attention!

    This method does not take into account a project for the currently synchronized issue.

    This article applies to Exalate Classic only. If you're using the New Exalate experience, please refer to the New Exalate documentation.

    Signature

    HelperuserHelper
    Signature
    hasRole(String username,String role)
    Description

    Returns a boolean indicating if the user has the specified role in any of the existing projects.

    Introduced in0.12.0

    Example use

    if (userHelper.hasRole(replica.assignee.username, "Developers"){
    	issue.customFields.internal.value = "Yes"
    }