Create new Change Request in RTC 6.0.1 M1 using RestAPI
Hi I am using RTC 6.0.1M1 and I want to create change request work item in RTC.
So I made POST request to the creation factory URL, whcih I took from the Service Provider for my project. So the URL for creation is: https://10.0.2.79:9443/ccm/oslc/contexts/_tsVvMWWwEeWQIIEAtKgWEg/workitems/ so the post is: POST: https://10.0.2.79:9443/ccm/oslc/contexts/_tsVvMWWwEeWQIIEAtKgWEg/workitems/Headers: Content-Type: application/x-oslc-cm-change-request+xml and the request body is: <xmlns:oslc_rm="http://open-services.net/ns/rm#" > <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/"> <dc:title>A new Bug</dc:title> <dc:description>This is new bug</dc:description> <dc:type rdf:resource="https://rtc:9443/jazz/oslc/types/_gasc4Ju-Ed6cerS9lb5AWw/defect"/> <rtc_cm:filedAgainst rdf:resource="https://rtc:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_hckJkpu-Ed6cerS9lb5AWw"/> </oslc_cm:ChangeRequest> but instead of the URI of the new workItem I receive:
Where could be my error? Edit: Now from the log I see and error that put little brightness to the problem. com.ibm.team.repository.common.CSRFException: The user has the roles required to perform this operation,The strange here is that in the RDNG 6.0.1M1 this header was not needed. And if this header needed when try to create workItem with JAva code? |
One answer
Hi,
I'm currently facing the same problem. Did you find a solution to this problem?
Thank you,
Luis
|
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.