Skip to content

postFunctionUpdateProjectRoleFromUserPickerField.groovy not working on Jira 8.15 #4

Description

@streamelody

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())

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions