Thanks for your tutorial.
Since Jira upgraded to 8.15, jira username and key are not the same value.
So when we use addActorsToProjectRole(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) to add actors to project.
It's not working.
Because actors - is a list of strings (e.g. user keys or group names) that the RoleActor impl should be able to handle.
Solution:
Use the following code to get actors may work.
pmActors.add(projectManagerValue.getKey().toString()) psActors.add(projectSponsorValue.getKey().toString())
