It's all about the answers!

Ask a question

How can I write Work Allocation usin REST API


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

One answer



permanent link
Krzysztof Kaźmierczyk (7.3k34391) | 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

Your answer


Register or to post your answer.