nodeHelper.createUser

    This article applies to Exalate Classic only. If you're using the New Exalate experience, please refer to the New Exalate documentation.

    Signature

    Helper nodeHelper
    Signature
    createUser(String username,
                      String password,
                      String emailAdress,
                      String displayName)
    Description

    Creates a new user with the provided information.

    Introduced in 0.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.displayName, 
                             "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.