[closed] updating RTC workitems using groovy rest client
![]()
Binoy D'costa (95●3●18●35)
| asked Jun 02 '15, 4:52 p.m.
closed Jun 15 '15, 9:59 p.m. by Donald Nong (14.5k●3●14)
Hi,
I'm trying to do a PUT method to update workitem using Groovy rest client and i constantly get this error: CRJAZ0005I Error retrieving a URI for the item created at "https://clmserver/jazz/service/com.ibm.team.repository.common.internal.IItemRestService/itemName/com.ibm.team.workitem.WorkItem/90255". Exception message: item must not be null groovy snippet def headers = ["Accept": "application/x-oslc-cm-change-request+xml"] def body = getClass().getResource("xmlCreator.xml").text def resp = clmhttp.post(path: '/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/90255', body:body, headers:headers, requestContentType: XML) xmlCreator.xml has the following content: <oslc_cm:ChangeRequest><dc:subject>test</dc:subject></oslc_cm:ChangeRequest> Can anyone give any idea what is wrong here? what does the error mean? Much appreciate! Thanks, Binoy |
The question has been closed for the following reason: "The question is answered, right answer was accepted" by dnong Jun 15 '15, 9:59 p.m.
One answer
![]()
Ignore this, it works, it was issue related to user not having proper permissions.
|