Work Item Creation
I try desperately to post this xml to create a new work item:
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
<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
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