isGroupMember

    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
    isGroupMember(String username, String group)
    Description

    Returns a boolean indicating if the user if member of the specified group.

    Introduced in0.12.0

    Example use

    //If the remote assignee exists as an administrator in our system, then add a comment 
    if(userHelper.isGroupMember(replica.assignee.username, "jira-administrators")){
         String message = "..."
    	 issue.comments = commentHelper.addComment(message, issue.comments)}
    }