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)
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



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.