Does anybody else get this error when trying to use the getProjectRoleActors and passing in two arguments? Or am I being silly and missing something?
I'm trying to get the users who have each role in each project..
Thanks
Could you show the error message?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is right. There is no such method. You pass wrong parameters. You should pass
getProjectRoleActors(ProjectRole projectRole, Project project)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get the same error when I pass two arguments as string representations, ideally I'd be able to get the full list of roles, with the users (actors) too.
I also tried to pass in (projectRoleList[1], "Test") but still get the same error. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should pass ProjectRole and Project variables. Not Strings, ints, long etc. String is String. String is not ProjectRole or Project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, these are Project and Role objects though (I think) that are being passed in..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, these ara List<ProjectRole> and List<Project>. And List<ProjectRole> does not equal to ProjectRole. Same with Project. You need to iterate over Lists and pass each value to the function.
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.
for (ProjectRole projectrole : projectRoles) {
for (Project project : projectArray) {
def ret = projectRoleManager.getProjectRoleActors(projectRole,project)
}
}
I did not check the code. There are can be typos. But it is the idea
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.