It's all about the answers!

Ask a question

How can I write Work Allocation usin REST API


Erwin Kunz (94687086) | asked May 07 '13, 2:55 p.m.
edited Sep 11 '13, 9:43 a.m. by Krzysztof Kaźmierczyk (7.5k480103)
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

Comments
Guido Schneider commented May 26 '13, 5:03 a.m.

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?


Erwin Kunz commented Sep 11 '13, 9:31 a.m. | edited Sep 11 '13, 9:43 a.m.

Hi There.

We are still looking for a solution. Any help is welcome

Thx
erwin

Accepted answer


permanent link
Ralph Schoon (63.5k33646) | 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.



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.


I am not aware of a supported REST API to write it.


Ralph Schoon selected this answer as the correct answer

2 other answers



permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered May 08 '13, 6:52 a.m.
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

Comments
Erwin Kunz commented May 08 '13, 7:30 a.m. | edited May 08 '13, 7:31 a.m.

Thanks for your answer. Looks like my question was not clear enough. I modified it

I'm looking for something like the requirementFactory in RM


permanent link
Aatish Gawas (11) | answered Jul 12 '21, 2:07 p.m.

 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


Register or to post 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.