Assign User to WorkItem via REST
Ya Bin Dang (33●1●5●1)
| asked May 09 '13, 10:11 p.m.
JAZZ DEVELOPER retagged May 10 '13, 2:32 a.m. by Krzysztof Kaźmierczyk (7.5k●4●80●103) I'm trying to assgin a owner when creating a new workitem via REST (RTC 3.0.1), like this
<oslc_cm:ChangeRequest xmlns:dc="http://purl.org/dc/terms/" xmlns:rtc_cm="https://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
However, the owner is always "Unassigned" in the return response. How can I do that? Thanks a lot! |
Accepted answer
Hi Ya Bin,
based on the XML piece you provided, I believe your initial description phrase (and question title) mentioning "REST" would both need to be rephrased at the favor of OSLC instead. Back to the core of your question: I advise you to read this piece of information here: https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Updating_Work_Items Among other things, you'll find that "dcterms:contributor" is the right property to use (*) Regards, Stéphane (*): for OSLC_CM 2.0, you have to use HTTP headers: - Accept: application/rdf+xml and - OSLC-Core-Version: 2.0 Ya Bin Dang selected this answer as the correct answer
|
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.