How to create a draft work item on Jazz Foundation (JTS v6)?
curl -D headers -k -b %COOKIES% -H "Content-Type: application/rdf+xml" -H "Accept: application/rdf+xml" -H "OSLC-Core-Version: 2.0" -X POST -d @newdefect %HOST%/oslc/contexts/_Q2fMII8EEd2Q-OW8dr3S5w/drafts/workitems
where HOST is: https://jazz.net/jazz
and "newdefect" file contains:
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" >
<rdf:Description rdf:nodeID="A0">
<dcterms:title rdf:parseType="Literal">Sample Work Item</dcterms:title>
<dcterms:type>defect</dcterms:type>
</rdf:Description>
</rdf:RDF>
Fails with:
<oslc:message>The service 'com.ibm.team.workitem.service.internal.oslc.resources.WorkItemDraftsCollectionResourceHandler@34bd77bd' failed to find the required service 'interface com.ibm.team.workitem.common.IConfigurationManagementProce
ssService'. Check <prerequisites> in plugin.xml.</oslc:message>
<oslc:statusCode>500</oslc:statusCode>
where HOST is: https://jazz.net/jazz
and "newdefect" file contains:
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" >
<rdf:Description rdf:nodeID="A0">
<dcterms:title rdf:parseType="Literal">Sample Work Item</dcterms:title>
<dcterms:type>defect</dcterms:type>
</rdf:Description>
</rdf:RDF>
Fails with:
<oslc:message>The service 'com.ibm.team.workitem.service.internal.oslc.resources.WorkItemDraftsCollectionResourceHandler@34bd77bd' failed to find the required service 'interface com.ibm.team.workitem.common.IConfigurationManagementProce
ssService'. Check <prerequisites> in plugin.xml.</oslc:message>
<oslc:statusCode>500</oslc:statusCode>
Accepted answer
Lori
Looks like you found a defect and a regression. Thanks https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=353253
Looks like you found a defect and a regression. Thanks https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=353253
One other answer
I am not convinced that JTS has any work item capabilities. This is a capability that is provided by RTC and not JTS.