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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.