How can I write Work Allocation usin REST API
Erwin Kunz (946●8●70●86)
| asked May 07 '13, 2:55 p.m.
edited Sep 11 '13, 9:43 a.m. by Krzysztof Kaźmierczyk (7.5k●4●80●103)
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 |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 14 '21, 12:39 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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.
Ralph Schoon selected this answer as the correct answer
|
2 other answers
did u get answer for it? Comments
Ralph Schoon
commented Jul 14 '21, 12:40 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Consider to write your own question instead of asking with an answer in someone else question. |
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.
Comments
We need urgently the possibility to WRITE workallocation of a contributor over web.
We are able to do this with Java API, but we need a REST or OSLC API.
It doesn't matter if it is an official API or just an internal one. It also must not be stable. We are able to manage changes.
Dear RTC developers, tell us, if there is a way to write workallocations over the WEB out of a browser Client application, without a Java-API.
Do we really have to reverse engineer the SAVE button of the user Profile page?
Hi There.
We are still looking for a solution. Any help is welcome
Thx
erwin