Azure DevOps CSV import issue [default state 'Done', Closed Date field]

1k Views Asked by At

currently I'm trying to import approx 1600 tasks from Azure DevOps Kanban board to another one (via browser). I've faced two problems by doing this:

  1. It is not possible to import the task with Closed Date field, it says:

Value of a readonly field Closed Date was modified. Please revert the Closed Date values or remove the column from the input file and and try to import again. enter image description here

  1. Removing the column with "Closed Date" will cause issue with default state "Done", it says:

The field 'State' contains the value 'Done' that is not in the list of supported values. enter image description here

I've copied (manually) the project settings from old Organization to new, such as:

  1. Process \ State (and assigned it to the project): enter image description here
  2. Time and Locale as it was set in old Kanban

Also, I had to remove the ID column, because it caused the issue: enter image description here

Still it is not possible to import all these tasks because of the issues. I'm looking for any tips how to fix this. Below there's an example of CSV:

Work Item Type,Title,Created By,Created Date,Assigned To,State
Issue,Some test task number 1,TestCreator,02.06.2020 15:19:24,TestWorker,"Done"
Issue,Some test task number 2,TestCreator,02.06.2020 15:20:23,TestWorker,"Done"
2

There are 2 best solutions below

4
RoyWang-MSFT On

When importing work items via CSV file in Azure DevOps, first make the following statements are true:

1.The source project to export and target project to import has the same work item type configuration, in common, they need to have the same process configuration, for example, work item type, state.

2.All work items you import are created in a new state. This rule means that you can't specify field values that don't meet the field rules for the new state. (That's why "Done" that is not listed as supported value)

3.Make sure you don't assign IDs to new work items that you're adding. Work item ID is unique in one Azure DevOps organization. (ID will cause the following error message) enter image description here

With the above prerequisites, the import process loads the imported work items into the queries view in an unsaved state. No IDs are assigned. Verify the results are what you want. Then, choose Save Items to save the work items.

enter image description here

If you still get the error when importing, try reduce the work item counts for per import attempt. As you said, you have approx 1600 tasks, you could import by separating them into several queries.

0
Dennis On

Azure DevOps Server 2022 allows you to change the values during import.
So I would suggest you batch the import for each state and edit the fields appropriately.

Edit the state

  • once to enable the import and save the changes to complete the import
  • once more in the same to change it back to the original state value

I.e.

  1. Import To Do (should possess no issues)
  2. Import Doing
  3. Change State to To Do
  • In the Import view, mark all items
  • Right click Edit
  • Select State and set it to To do
  • Click OK
  • Click Save Items
  1. Now - Change the saved items back to Doing and Save items
  2. Continue with next state

enter image description here