Hi,
I am using ProjectRoleUPdatedEvent to catch whenever a user is added to a project. Below is the code I am using.
import com.atlassian.jira.event.role.ProjectRoleUpdatedEvent
def newUser = event.roleActors.roleActors.stream().map{actor -> actor.parameter}.collect()
It runs successfully and also returns the new user created. But it returns the user name instead of userid as below
[cadence.garfield, jira-users]
alongwith its other group membership.
can someone please help me to get only the userid. for example in this case the user id cadgr.
Help please.
Regards