Postfunction assignee to rolemember

yunus simsek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2016

Please Help!

assigned user changed by post function but assigned not the Role of member "Diagnosekoordinator"

Assigned to a user "unassigned"

What is the problem??

Thank

Yunus

 

if(OnOffRoadvalue?.value == "Offroad")

{

    User usera

    Project project = issue.getProjectObject()

    ProjectRoleManager projectRoleManager =    ComponentManager.getComponentInstanceOfType(ProjectRoleManager.class) as ProjectRoleManager

   

ProjectRole projectRole = projectRoleManager.getProjectRole("Diagnosekoordinator")

    def projRoleUsers = projectRoleManager.getProjectRoleActors(projectRole, project)

    def DiagKoordinator = projRoleUsers.getUsers().toList().first()?.name

    //usera = userManager.getUser(projRoleLead)

    usersa = userManager.getUser(DiagKoordinator)

    issue.setAssignee(usera);

    issue.store();

}

1 answer

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2016

Watch the application log and see if any errors occur.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events