isGroupMember

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