It's all about the answers!

Ask a question

[closed] updating RTC workitems using groovy rest client

Binoy D'costa (9532637) | asked Jun 02 '15, 4:52 p.m.
closed Jun 15 '15, 9:59 p.m. by Donald Nong (14.5k414)

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/". 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 = '/jazz/resource/itemName/', body:body, headers:headers, requestContentType: XML)

xmlCreator.xml has the following content:


Can anyone give any idea what is wrong here? what does the error mean?

Much appreciate!


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

permanent link
Binoy D'costa (9532637) | answered Jun 12 '15, 11:22 a.m.
Ignore this, it works, it was issue related to user not having proper permissions.