How can I write Work Allocation usin REST API
RTC 4.0.2
I would like to use the REST API interface to set workallocation of people.
I know the resources from the Reportable REST API but not how to modify the workallocation.
Can somebody help me there. Is it possible to write e.g assignment
Rest API is: https://server/ccm/rpt/repository/apt?fields=workResourceDetails/workResourceDetails[contributor/userId=id]/*
<workResourceDetails>
<contributor/>
<uniqueId>998667c786c1c586566d9b81049c54de</uniqueId>
<stateId>_K9rY8PQYEeC9M-JPZxKhQA</stateId>
<itemId>_4fLdUPQXEeC9M-JPZxKhQA</itemId>
<contextId>_8lNyYNwSEd2pIJ5QVwgQGg</contextId>
<modified>2011-10-11T16:49:07.327+0200</modified>
<assignment>0</assignment>
<startDate>2000-01-01T13:00:00.000+0100</startDate>
<endDate>3000-01-01T13:00:00.000+0100</endDate>
<modifiedBy/>
<developmentLine/>
<projectArea/>
<teamArea/>
</workResourceDetails>
Thanks
erwin
I would like to use the REST API interface to set workallocation of people.
I know the resources from the Reportable REST API but not how to modify the workallocation.
Can somebody help me there. Is it possible to write e.g assignment
Rest API is: https://server/ccm/rpt/repository/apt?fields=workResourceDetails/workResourceDetails[contributor/userId=id]/*
<workResourceDetails>
<contributor/>
<uniqueId>998667c786c1c586566d9b81049c54de</uniqueId>
<stateId>_K9rY8PQYEeC9M-JPZxKhQA</stateId>
<itemId>_4fLdUPQXEeC9M-JPZxKhQA</itemId>
<contextId>_8lNyYNwSEd2pIJ5QVwgQGg</contextId>
<modified>2011-10-11T16:49:07.327+0200</modified>
<assignment>0</assignment>
<startDate>2000-01-01T13:00:00.000+0100</startDate>
<endDate>3000-01-01T13:00:00.000+0100</endDate>
<modifiedBy/>
<developmentLine/>
<projectArea/>
<teamArea/>
</workResourceDetails>
Thanks
erwin
Accepted answer
The API in use above is the Reportable REST API. As fat as I can tell, that is a read-only API.
You can get the information like this: https://jazz.net/forum/questions/107951/rtc-rest-api-for-getting-resource-allocation-info
Pretty much all APIs can be found here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding the reportable REST APIs are in the section REPORTING . E.g. https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI as you might notice all calls are GET calls.
You can use the Plain Java Client Libraries. See: https://jazz.net/forum/questions/228503/how-to-write-work-allocation-details-using-java-rtc-api to write it. Also see https://rsjazz.wordpress.com/2014/07/22/manage-scheduled-absences-using-the-plainjava-client-libraries/ .
I am not aware of a supported REST API to write it.
2 other answers
Hello Erwin,
You can use following query:
https://localhost:9443/ccm/rpt/repository/workitem?fields=workitem/workItem/%28id|timestampExtensions/*%29
Let me know if it works for you.
Best reagards,
Krzysztof Kazmierczyk
You can use following query:
https://localhost:9443/ccm/rpt/repository/workitem?fields=workitem/workItem/%28id|timestampExtensions/*%29
Let me know if it works for you.
Best reagards,
Krzysztof Kazmierczyk
Comments
Guido Schneider
May 26 '13, 5:03 a.m.Erwin Kunz
Sep 11 '13, 9:43 a.m.