azureazure-devopsazure-devops-rest-apiazure-devops-extensions

Azure DevOps: How to export and import the Azure DevOps Project between the Organizations?


My old Azure DevOps Organization has multiple projects and I'd like to export and import the Azure DevOps Project between the organizations, especially the Board, Repo, and Pipelines.

I don't need the historical/version/commit details, I just need the latest version.

Is there a built-in way to do this? If not, is there any reference to building the custom tool using Azure DevOps REST APIs?


Solution

  • So far, there seems to be no built-in feature to back up the full azure devops projects. As a workaround, you could back up the related items separately.

    You can refer to the following steps to export the items:

    1. Clone Wiki.
    2. Export work item to CSV file.
    3. Clone Azure repos to local.
    4. Export the definition of build/release pipeline.
    5. Export test case to CSV file.

    You can restore the items use the following steps:

    1. Publish Code to Wiki.
    2. Import work items using CSV files.
    3. Import repo.
    4. Import the definition build/release pipeline .
    5. Import test case using CSV files.

    You could also use work item migration tool to migrate work items between projects or find the migration extension tools for Azure DevOps in the extension marketplace, such as Migration Tools for Azure DevOps.

    Finally, there is a Developer Community suggestion thread for this feature, click here for details.