Is it possible to add to this code in order to retrieve a full user name (i.e. John Smith) as well as their username, from getting the Actor Roles?
for(Project projectarray in projectArray){
for(ProjectRole projectrole in projectRoles){
def actorRole = projectRoleManager.getProjectRoleActors(projectrole, projectarray) //projectLead = projectarray.getProjectLead()
if(actorRole.getUsers().toArray().size() >= 1){
file.append( "" + projectarray.getKey() + "_" + projectrole.getName() + " " + "= " + actorRole.getUsers().toArray() + "\n")
}
else if(actorRole.getUsers().toArray().size() < 1){ }
It would be something like this
actorRole.getUsers().each{it.getDisplayName()}
hmm, doesn't appear to work.
Nothing gets returned when I use this function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you want to return? There will be an array of full user names not a singe full user name. Do you want to return an array?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, currently I'm able to just return the username i.e. bob123, which is concurrent with the project actoRole, however, I would like to get the Full Name too.
i.e. [bob123] [Bob Smith]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.