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? |
2 answers
![]()
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); |
![]()
Ralph Schoon (63.3k●3●36●46)
| 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
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.