Hello
We have a connection with Exalate between a JSM Cloud and a JSM Server.
When a user creates a ticket in the JSM Cloud we want to pass as a reporter or as a participant to the ticket created in JSM Sever. We have a code to create the user in the connection configuration in the server, in the incoming sync section:
------------------------------/////////
def localUserForRemoteReporter = userHelper.getByEmail(replica.reporter.email)
if (localUserForRemoteReporter == null) {
// create the user if s/he doesn’t exist
localUserForRemoteReporter = userHelper.createUser(replica.reporter.username,
“changeme”,
replica.reporter.email,
replica.reporter.displayName)
}
issue.reporter = localUserForRemoteReporter
issue.customFields.“Participantes de la solicitud”.value += localUserForRemoteReporter
------------------------------/////////
I performed some tests and was able to see that performing the following changes to the script fixes the issue:
------------------------------/////////
def localUserForRemoteReporter = userHelper.getByEmail(replica.reporter.email)
if (localUserForRemoteReporter == null) {
// create the user if s/he doesn’t exist
localUserForRemoteReporter = userHelper.createUser(replica.reporter.displayName,
“changeme”,
replica.reporter.email,
replica.reporter.displayName)
}
issue.reporter = localUserForRemoteReporter
issue.customFields.“Participantes de la solicitud”.value += localUserForRemoteReporter
------------------------------/////////
The user then was created but has been created as a jira user (with license), not as a portal customer.
Is it possible for him to be created as a portal user, or as a participant, or as a user but without being added to the default groups that give access to the product?
Participants are not being copied to the jira server unless they previously exist as users in jira server.
Thanks in advance