Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] updating RTC workitems using groovy rest client

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


0 votes


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
Ignore this, it works, it was issue related to user not having proper permissions.

0 votes

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,926

Question asked: Jun 02 '15, 4:52 p.m.

Question was seen: 2,801 times

Last updated: Jun 15 '15, 9:59 p.m.

Confirmation Cancel Confirm