It's all about the answers!

Ask a question

Can the client API set a project area programmatically?


Daniel Ruebush (972473) | asked May 27 '16, 2:56 p.m.
edited May 27 '16, 2:57 p.m.
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?

2 answers



permanent link
sam detweiler (12.4k6172200) | answered May 29 '16, 7:55 a.m.
edited May 29 '16, 7:56 a.m.
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);

permanent link
Ralph Schoon (55.5k23642) | answered May 30 '16, 2:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or to post your answer.