Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SIL script for user create error

Кирилл Часовских March 26, 2022

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 ? 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events