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

Copy Workitem between project areas using RTC API

Hi,

Am exploring options to copy workitem programmatically from Project Area A to Project Area B to sync both these stream on workitem save event of project area A .Note that these project areas are configured to serve functional and techncial folks separately.

Have seen some articles that states duplicate workitem first before changing category/field against/project area fields to get copy of workitem and looking for more technical steps to implement this.

Can you help me out on this please.

Thanks,

Suresh .

0 votes



2 answers

Permanent link
 Hello Suresh,
RTC code  use uses a CopyToProjectAreaOperation
but I don't think this is API.

The solution to implement here is to
- create a work item copy from the original one
- set the project area / team are for the copy
- commit

Eric

0 votes


Permanent link
 Hi Eric,
In your answer do you mean to say,
Create copy of project area,
Then for "Project Area" attribute of that work item, set required project area using java client api and save work item.
?

I had a look at CopyToProjectAreaOperation class inside public boolean performFinish() method of com.ibm.team.workitem.rcp.ui.internal.wizards.CopyToProjectAreaWizard.

I only picked up that much of code inside performFinish() method, hardcoded all the required parameters that needs to be passed to CopyToProjectAreaOperation constructor, but I could not see work item moved to target project area.

Any suggestions.?

0 votes

Comments

I posted question about sameĀ here

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: Mar 31 '14, 8:31 a.m.

Question was seen: 4,925 times

Last updated: Feb 24 '16, 6:16 a.m.

Confirmation Cancel Confirm