Hello, friends!
I have script
string groovyCreateUser = readFromTextFile("groovy/createUser_asAnotherUser.groovy");
string logPckg = "info.shestov.postfunction.employees.createuser";
string userAs = "Robot";
groovyCreateUser = replace(groovyCreateUser, "$logPckg$", logPckg);
groovyCreateUser = replace(groovyCreateUser, "$userAs$", userAs);
groovyCreateUser = replace(groovyCreateUser, "$jiraUserName$", emailemploye);
groovyCreateUser = replace(groovyCreateUser, "$jiraFullName$", nameinjira);
groovyCreateUser = replace(groovyCreateUser, "$jiraMail$", emailemploye);
string groovyResult = executeGroovyScript(groovyCreateUser);
this script create a new user, but the user have some problems - he can't enter the jira. When i'm trying to edit user - i resieve error
The Jira server could not be contacted. This may be a temporary glitch or the server may be down.
java.lang.IllegalStateException: There is no ID mapped for the user key 'JIRAUSER20400'
i'm trying to compare in database this error-user with normal user - no differences!
BUT after rebooting jira - the user is restored and works correctly.
What is the reason? How to fix this problem ?