Is it possible to change the name of the synchronization user

Originally asked by Marko Jesenek on 19 May 2021 (original question)


Hello,

we have Jira Service Management on Cloud and Jira Software on Server. To connect between instances we’re trying to use your plugin.
Our question is: is it possible to adjust ‘Excalate’ user name on Cloud if we don’t have user with email on it?
For users with email on both instances we used:

replica.addedComments.each { it.executor = nodeHelper.getUserByEmail(it.author?.email) }
replica.changedComments.each { it.executor = nodeHelper.getUserByEmail(it.updateAuthor?.email) }
issue.comments = commentHelper.mergeComments(issue, replica, { it })

as its described on https://docs.idalko.com/exalate/display/ED/How+to+impersonate+a+comment+in+Jira+on-premise
and its working like a charm.

But what about if we would like to have different name for non existing user… Can new user be created like in Server and how?

Thank you for answers.


Answer by Francis Martens (Exalate) on 22 May 2021

No - that is not possible.
The user is a system entry created by Atlassian.

The only way to impersonate another user is by using the approach you mention, but then with your own created user …


Comments:

Marko Jesenek commented on 22 May 2021

Thank you Francis, for your answer.

But just to bi sure (because its very important for us - to plan future usage)…
The thing is we have Jira Service Managment product on Cloud and Jira Software product on server. If I get it correctly, there is no way for users in Jira Software that do not exists in JSM, to comment in their environment and not be seen as ‘Excalate’ user in JSM? Or we can change user ‘Excalate’ with our other existing user in JSM in some way? To assign this other user as a comment executor?

Francis Martens (Exalate) commented on 22 May 2021

Yes - the latter.

  • On JSM (Cloud) - create a user ‘John Doe’
  • Whenever the dev user is non existent on JSM, fallback to John Doe using the executor approach

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.