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

Can the client API set a project area programmatically?

Hi All,
We have a new work item type that is approved by managers.
After it is approved the work item will move from one project area to another. The final project area is accessible to our development team that will address the work item.

The client API allows the getting of the WorkItem's project Area; but can it  allow the setting of the Project Area? The Web UI and Eclipse client can perform this action but we need this done programmatically.

Is it possible?

0 votes



2 answers

Permanent link
sure.. the eclipse client uses the plain java api.

you  will have to get the raw workitem class under the IWorkitem.

WorkItem x = (WorkItem)IWorkItem_variable;
x.setOrigin(project_area_handle);

0 votes


Permanent link
You might want to look into the Eclipse code to move work items to another project area. I don't think it is as easy as Sam suggests. As far as I can tell, a work item references the project areas process and it is in general not possible to assume source and target project area have the same process. You will also have to do some mapping. I don't know how the client or the web UI does it, but it has to take this under consideration.

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
× 12,019
× 7,494
× 1,700

Question asked: May 27 '16, 2:56 p.m.

Question was seen: 4,062 times

Last updated: May 30 '16, 2:53 a.m.

Confirmation Cancel Confirm