I try to make user inactive via groovy scriptrunner
1.import com.atlassian.jira.bc.user.UserService
2.UserService userService = ComponentAccessor.getComponent(UserService)
3.
4.try{
5.def updatedUser = userService.newUserBuilder(listForTest.get(0)).
6.displayName("${listForTest.get(0).username}_not 7.working").active(false).build()
8.def updateUserValidationResult = 9.userService.validateUpdateUser(updatedUser)
10.log.warn("Is valid : " + updateUserValidationResult.isValid())
11.userService.updateUser(updateUserValidationResult)
12.}catch (Exception e){
13.log.warn(e)
14.}
15.log.warn("Try to deactivate first user from list. This user is 16.${listForTest.get(0).username}")
17.log.warn("End of script")
and user become inactive and name changes but I have a long list of Exceptions in script console
at Script101.run(Script101.groovy:11)
.
.
.
WARN [runner.ScriptBindingsManager]: Try to deactivate first user from list. This user is aantonov
WARN [runner.ScriptBindingsManager]: End of script Start of logs truncated as they exceeded 300 lines.
But I can't find this log in atlassian-jira.log or in catalina.out on jira server
What is wrong and why that exceptions appears but user changes and why it doesn't handle by catch block?