NullPointerException error on Groovy Script

Sandhya Muthukumar April 1, 2024

I am a Jira Admin and I am trying to add users to project roles using Groovy Script

But it is throwing an error Null Pointer Exception on addActorsToProjectRole, eventhough all the inputs have values except for error collection


projectRoleService.addActorsToProjectRole(currentUser,usersToAdd as Collection,projectRoles,projectKey,userRoleActor,errorCollection)
Script console script failed: java.lang.NullPointerException at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.createRoleActors( at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.updateActorsToProjectRole( at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.addActorsToProjectRole( at

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events