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
Did you initialize the error collection?
Like this:
def errorCollection = ErrorCollections.empty()
If you've already done that, try adding some debug output and share the output?
log.info "currentUser=$currentUser (${currentUser.getClass()})"
log.info "usersToAdd=$usersToAdd (${usersToAdd.getClass()})"
log.info "projectRoles=$projectRoles (${projectRoles.getClass()})"
log.info "projectKey=$projectKey (${projectKey.getClass()})"
log.info "userRoleActor=$userRoleActor (${userRoleActor.getClass()})"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.