It's all about the answers!

Ask a question

Why are work item approvals not getting imported?

Vince Thyng (13723553) | asked Jun 29 '16, 12:56 p.m.
I am doing a simple export / import of a single task with an approved review approval.  In the exported csv file there is an Approvals field with a value of 'Review: Approved (1 of 1)'
Should this be getting imported to some part of the new work item?  I checked the history tab and do not see it showing up there or Approvals or as a comment.

I am importing it back in to the same project area the work item was exported from, so there should not be any mismatch with the field name, and the new work item was created as a task as expected.

I see this article on how it can be done programmatically
and someone else asked about this a few years ago:


Accepted answer

permanent link
Ralph Schoon (63.0k33645) | answered Jun 29 '16, 1:12 p.m.
edited Jun 29 '16, 1:15 p.m.
The CSV import does not support it as far as I can tell. Essentially the data format is not really good either. So you have to write your own importer. How to creat them can be found here: and here , shows similar code. So feel free to create your own automation.

In the I think I decided not to implement the import, because the parsing is a nightmare and setting the approval state won't work or be easy. A nightmare. Enough reasons not to do it.
Vince Thyng selected this answer as the correct answer

sam detweiler commented Jun 29 '16, 1:30 p.m.

when we had to do this for our project copy utility we
imported the workitems, using the original ID as a new attribute column(old_id)
then searched on all the workitems where old_ID was not null,
then fixed up all the migrated workitems.. 

for the approvals we connected to both repos at the same time and copied the approvals over, cause as Ralph noted the data is hard to export

Your answer

Register or to post your answer.