It's all about the answers!

Ask a question

Work Item Creation


Marco Bormann (16111910) | asked Oct 28 '10, 8:41 a.m.
I try desperately to post this xml to create a new work item:


<oslc_cm:ChangeRequest xmlns:dc="http://purl.org/dc/terms/" 

xmlns:rtc_cm="http://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/">
<dc:title>New Item</dc:title>
<dc:type rdf:resource="https://192.168.3.62:9443/jazz/oslc/types/_iW_3MImwEd-c4_BClnlCHw/bug"/>
</oslc_cm:ChangeRequest>


The type "bug" exists in my project, "_iW..." is the correct project ID and I post with "application/x-oslc-cm-change-request+xml" as content type.
Posted to: https://192.168.3.62:9443/jazz/oslc/contexts/_iW_3MImwEd-c4_BClnlCHw/workitems
I removed the "Filed against" from the required fields.
But I keep getting a "400 Bad Request" response.
And use Java and pretty much the same routine that works perefectly for work item updates.

Does anyone see an error in my post?

Thanks
Marco

One answer



permanent link
Adediran Otegbade (1121) | answered Jan 10 '11, 8:13 a.m.
Instead of using the xml code to create a work item, why don't you attempt to use the uer interface that is provided?



I try desperately to post this xml to create a new work item:


<oslc_cm>

<dc>New Item</dc>
<dc>
</oslc_cm>


The type "bug" exists in my project, "_iW..." is the correct project ID and I post with "application/x-oslc-cm-change-request+xml" as content type.
Posted to: https://192.168.3.62:9443/jazz/oslc/contexts/_iW_3MImwEd-c4_BClnlCHw/workitems
I removed the "Filed against" from the required fields.
But I keep getting a "400 Bad Request" response.
And use Java and pretty much the same routine that works perefectly for work item updates.

Does anyone see an error in my post?

Thanks
Marco

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.