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

Move workitem from a project area to another

Dear

I'm developing a server plug-in that moves workitem from a project area to another.

When status of workitem is in invalidated, it should be moved to another project area. So I'm developing a server plug-in for this.

I'm looking for APIs for that, but I can't find it.

Can anybody provide a pesudo-code for this purpose?

Any help will be appreciated.

0 votes



2 answers

Permanent link
I found how to do it.
Thanks everyone.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if ( newState!=null ) {

IProcessArea processArea = getProcessServerService().findProcessArea("Garbage", null);


IWorkItem workingCopy = (IWorkItem)newState.getWorkingCopy();
IWorkItemReferences workItemReferences = getWorkItemService().resolveWorkItemReferences(workingCopy, null);

WorkItemWrapper wiWrapper = new WorkItemWrapper(workingCopy, workItemReferences, "");
ServerCopyToProjectOperation op = new ServerCopyToProjectOperation(processArea.getProjectArea(), true);
op.run(wiWrapper, getWorkItemService());

done=true;
getWorkItemService().saveWorkItem2(workingCopy, null, null);

}

Dear

I'm developing a server plug-in that moves workitem from a project area to another.

When status of workitem is in invalidated, it should be moved to another project area. So I'm developing a server plug-in for this.

I'm looking for APIs for that, but I can't find it.

Can anybody provide a pesudo-code for this purpose?

Any help will be appreciated.

0 votes


Permanent link
 Hi Jaegon,
Did this solution worked for you, I mean did you moved work item from project area to another project area.
Could you please explain the process if work item is moved successfully

0 votes

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

Question asked: Apr 12 '11, 1:20 a.m.

Question was seen: 5,806 times

Last updated: May 31 '16, 5:21 a.m.

Confirmation Cancel Confirm