Signature
Helper | nodeHelper |
Signature |
|
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.username,
"changeme",
replica.assignee.email,
replica.assignee.displayName)
}
//add the user as a request participant
issue.customFields."Request participants".value += localUserForRemoteAssignee
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.