nodeHelper.createUser

    Signature

    HelpernodeHelper
    Signature
    createUser(String username,
                      String password,
                      String emailAdress,
                      String displayName)
    Description

    Creates a new user with the provided information.

    Introduced in0.12.0

    Example use

    Destination side

    Create/Change processor

    def localUserForRemoteAssignee = nodeHelper.getUser(replica.assignee.key)
    if (localUserForRemoteAssignee == null) {
       // create the user if s/he doesn't exist
       localUserForRemoteAssignee = nodeHelper.createUser(replica.assignee.username, 
                             "changeme", 
                             replica.assignee.email, 
                             replica.assignee.displayName)
    }
    	//add the user as a request participant
    issue.customFields."Request participants".value += localUserForRemoteAssignee


    Comments

    You can use this method in order to update request participants whenever the assignee of the issue is updated.