createUser

    Signature

    HelperuserHelper
    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 = userHelper.getByKey(replica.assignee.key)
    if (localUserForRemoteAssignee == null) {
       // create the user if s/he doesn't exist
       localUserForRemoteAssignee = userHelper.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.