Is their a java api into Requirements Management, I wish to list the projects users
![](http://jazz.net/_images/myphoto/b6d4ddaf0b7ffcd61e76f5106e997cd7.jpg)
I can use the java api to talk to RTC, how do I use it to talk to RM
I login this way to get my team service
private void login(String url, final String id, final String pass) throws TeamRepositoryException {
repo = TeamPlatform.getTeamRepositoryService().getTeamRepository(url);
repo.registerLoginHandler(new ITeamRepository.ILoginHandler() {
public ILoginInfo challenge(ITeamRepository repository) {
return new ILoginInfo() {
public String getUserId() {
return id;
}
public String getPassword() {
return pass;
}
};
}
});
repo.login(MONITOR);
}
I login this way to get my team service
private void login(String url, final String id, final String pass) throws TeamRepositoryException {
repo = TeamPlatform.getTeamRepositoryService().getTeamRepository(url);
repo.registerLoginHandler(new ITeamRepository.ILoginHandler() {
public ILoginInfo challenge(ITeamRepository repository) {
return new ILoginInfo() {
public String getUserId() {
return id;
}
public String getPassword() {
return pass;
}
};
}
});
repo.login(MONITOR);
}
One answer
![](http://jazz.net/_images/myphoto/b6d4ddaf0b7ffcd61e76f5106e997cd7.jpg)
Depending upon your client version (> V405) there are some javascript extensions
https://jazz.net/wiki/bin/view/Main/RMExtensionsMain
For example in V5 there is an api to find the user details
https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI50#UserDetails
https://jazz.net/wiki/bin/view/Main/RMExtensionsMain
For example in V5 there is an api to find the user details
https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI50#UserDetails
Comments
![](http://jazz.net/_images/myphoto/b6d4ddaf0b7ffcd61e76f5106e997cd7.jpg)
ver 4.0.7 any java api interface
![](http://jazz.net/_images/myphoto/197766eae5cac1218c9c4c8ca5d5ca58.jpg)
I have found that the same "attacks" that one can devise for RTC work equally well with RM except that /jts should be in the URL. Ralph Schoon has a wiki that has examples of examining, displaying the project(s) in a repository.
e.g.
https://jazz.net/forum/questions/96284/how-to-get-the-real-time-roles-and-team-information-with-the-latest-changes-in-rtc-server
![](http://jazz.net/_images/myphoto/b6d4ddaf0b7ffcd61e76f5106e997cd7.jpg)
it seems to work thanks