Use API to move item from one ProjectArea to another
Accepted answer
This is the reason why there is actually a move to project area in the tool, that does all this copy/mapping.
Comments
Thanks, Ralph. It's disappointing when the tool can do something that the API won't allow.
I did not say the API would not allow to do this. I just meant to say that this is not just changing one work item attribute, as far as I can tell.
Using the API you can basically also create a new work item and copy the data over (and delete the old one). You would have to do all the mapping for all the values needed. It is not trivial but it can definitely be done. If you look into the RTC Eclipse client SDK, you might even be able to find the code that does it. Otherwise https://rsjazz.wordpress.com/2015/01/12/a-rtc-workitem-command-line/ should answer most of the API questions you might have.
With the REST API you would likely have to do a little bit more, e.h. to find the mapping enumeration literals. Not sure, I am not an OSLC/REST expert.
Hi Ralph,
1 vote
As explained in that blog, you can't.
Special Properties Handling
Some special properties are protected from changing.
- Work Item ID: can not be changed
- Project Area: parameter “projectArea” can only be specified when creating the work item. It can not be set to a different value later.
There might be other limitations imposed by the process e.g. against changing the creator of a work item.
However, there are tools that you could use, the action in the tool for one work item or the Bulk Move tools
See https://jazz.net/wiki/bin/view/Main/BulkMoveWorkItemsBetweenProjectAreas