How to get Team areas List and Process roles list from particular project area using RTC plain java API
Hi Everyone,
2 answers
You have the example up there, what more do you want?
See: How should I ask a question in the Forum if I want to receive useful answers?
Comments
There is no scenario above, that I can understand. There is a minimal information maximal fuzzy question.
I think the example code you can download from the blog post https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ should give you a good idea how to write or change the code to reuse it for your purpose. The downloadable code actually iterates through exactly one project area, if you provide the name. The blog actually explains how the code works to some extend.
I am writing a code to add users with roles in RTC project area,now users added in project area, but I want to see how many and which roles are available in RTC project area
IClientProcess clientProcess = service.getClientProcess(processArea, null); IRole[] availableRoles = clientProcess.getRoles(processArea, null); for (int i = 0; i < availableRoles.length; i++) { if (availableRoles[i].getId().equals(roleID)) { return availableRoles[i]; } }