It's all about the answers!

Ask a question

How to get Scheduled Absence information using Java APIS in RTC?


shichen x (1144) | asked May 06 '13, 8:15 a.m.
 We want to get scheduled information for computing a member’s working time in a team.

Some works have been done to get the members in the team.

The procedure is:

1.Get Services Provider catalog (https://igartc03.swg.usma.ibm.com/jazz/oslc-scm/catalog)from root service(https://igartc03.swg.usma.ibm.com/jazz/rootservices)

2.Get specific service provider (CVT DSW) from services providers catalog

3.In this service provider, we enter into the team areas and get all members in every team.

4.We try to choose one member as an example to get the scheduled absence, but we failed.

The member’s information is displayed as followed:

Member’s Scheduled Absences information is displayed as followed:

Our question is how can we get the information saved
in the Scheduled Absences when we get he page of member’s information, or is it
possible to access Scheduled Absences using the Java APIs. We have looked for
this many times, but we haven’t yet!
If you have some ideas about this question, we hope you to help us .and share whatever you have.
Thanks in advanced!

2 answers



permanent link
Guido Schneider (3.4k1486115) | answered May 06 '13, 8:41 a.m.
edited May 08 '13, 12:36 p.m.

Why not using REST?

https://clm.mydom.com/ccm/rpt/repository/apt?fields=apt/contributorAbsence[contributor/userId=myusername]/(summary|startDate|endDate)&size=1000

You can also filter there with startDate and endDate

https://clm.mydom.com/ccm/rpt/repository/apt?fields=apt/contributorAbsence[contributor/userId=myusername and startDate > 2013-04-30T22:00:00.000%2B0200]/(summary|startDate|endDate)&size=1000

Refer to following Wiki Page for more information and some examples (at the end) about how to build queries in the reportable RESTAPI https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Resources_provided_by_RTC
 

permanent link
shichen x (1144) | answered May 08 '13, 3:56 a.m.

Hi,Guildo. Thank you very much for answering the questions for us. But we can’t build a link to the URL that you gave. Can you explain every part in the URL in details for us?

Besides, we use RESTClient ( Mozilla Add-ons) to get the member’s information.

Can you help us?


Comments
Guido Schneider commented May 08 '13, 12:37 p.m.

what's the result?
can you post your URL which is not working?
What is your URL of RTC?

Your answer


Register or to post your answer.