Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Work Item Creation

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940

Question asked: Oct 28 '10, 8:41 a.m.

Question was seen: 4,723 times

Last updated: Oct 28 '10, 8:41 a.m.

Confirmation Cancel Confirm