It's all about the answers!

Ask a question

Why are work item approvals not getting imported?


Vince Thyng (13722951) | 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 https://jazz.net/library/article/1118
and someone else asked about this a few years ago:
https://jazz.net/forum/questions/75812/import-work-item-approvals-from-csv

Thanks

Accepted answer


permanent link
Ralph Schoon (57.2k23642) | answered Jun 29 '16, 1:12 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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: https://rsjazz.wordpress.com/2015/11/03/a-rtc-workitem-command-line-version-3-0/ and here https://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/ , https://jazz.net/library/article/1118 shows similar code. So feel free to create your own automation.

In the https://rsjazz.wordpress.com/2015/11/03/a-rtc-workitem-command-line-version-3-0/ 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

Comments
1
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.