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

Saving work item on the server side

I am trying to use IRepositoryItemService to save the workitems on the server side.

But it get Access violation exception when i do that.
Is this the correct way to do that. Is therer any other method


Yogesh

0 votes



One answer

Permanent link
I am trying to use IRepositoryItemService to save the workitems on the
server side.

But it get Access violation exception when i do that.
Is this the correct way to do that. Is therer any other method

Save operations must be routed through the owning component's API, in this
case through the work item API:

com.ibm.team.workitem.service.IWorkItemServer.saveWorkItem2(IWorkItem,
IWorkItemReferences, String)

You can get IWorkItemServer like any other service:
getService(IWorkItemServer.class);

--
Regards,
Patrick
Jazz Work Item Team

0 votes

Comments

Patrick, I am trying to save a work item and add a Timesheet Entry to it using the server-side Java API. Using saveWorkItem3 doesn't work in this case. It saves the work item, but not the newly linked Timesheet entry.

What is the correct "owning component" to use for an ITimeSheetEntry object? If I can't save it by saving the owning work item, then it seems like I need to save it explicitly somehow. Similar to Yogesh's report above, it doesn't work with IRepositoryItemService.

Your answer

Register or log in to post 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.

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,941

Question asked: Oct 04 '09, 2:18 p.m.

Question was seen: 4,870 times

Last updated: Apr 24 '15, 1:50 p.m.

Confirmation Cancel Confirm