hasRole

    Attention!

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


    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"
    }