JAVA API to Read/Get the RTC User Profile details?
praveen hanchinamani (27●3●12)
| asked Jun 29 '16, 7:00 a.m.
edited Jun 30 '16, 8:50 a.m. by Paul Slauenwhite (8.4k●1●2)
Hello Everyone,
In RTC 6.0.1 Web UI I can get the details of the users in the user profile such as -
1) Work location
2) Work Days &
3) Work Allocation.
I am interested to retrieve these information using the RTC Plain JAVA API.
Provided the user id, i want to retrieve the above details through RTC 6.0.1 Plain JAVA APIs.
Could you please help me on this? any code snippet to reach till user profile.
Thanks & Regards,
Praveen S H
|
Accepted answer
Ralph Schoon (63.6k●3●36●46)
| answered Jun 30 '16, 9:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here is some work I have done. It helps locating the classes:
https://rsjazz.wordpress.com/2014/07/22/manage-scheduled-absences-using-the-plainjava-client-libraries/ This is from other customers: JAM – Jazz Workallocation Manager A lightweight Web client to manage the Workallocation of users or team within Jazz/RTC I provided them some code but had no time to blog about it. Some hints: com.ibm.team.apt.internal.client.resource.ResourcePlanningManager ResourcePlanningManager resourcePlanningManager = resourcePlanning .getResourcePlanningManager(); IContributorInfo info = resourcePlanningManager.getContributorInfo( this.user, true, monitor); ItemCollection<IWorkResourceDetails> details = info .getWorkDetails(this.user); IWorkResourceDetailsHandle[] remove = toRemove .toArray(new IWorkResourceDetailsHandle[toRemove.size()]); resourcePlanning.deleteWorkDetails(remove, monitor); IWorkResourceDetails[] save = toSave .toArray(new IWorkResourceDetails[toSave.size()]); resourcePlanning.saveWorkDetails(save, monitor); There are several challenges with the API and it is not public API, it is internal API. praveen hanchinamani selected this answer as the correct answer
Comments
praveen hanchinamani
commented Jul 01 '16, 1:16 a.m.
Thank you Ralph,
I was interested in retrieving the details about the work allocation. Your answer helped me achieve the goal.
|
One other answer
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.