I accidentally imported test cases from one project in Azure DevOps to another

Hanne Dahlen 0 Reputation points
2025-09-23T13:30:35.68+00:00

I tried to copy test cases from one project to another in Azure DevOps. I accidentally managed to import the test suites from the first project to the second and now, whenever I change a test case for project 2 I automatically also change the test case for project 1. How can I remove the import without deleting all the test cases and test suites in project 1?

Azure DevOps

1 answer

Sort by: Most helpful
  1. Siddhesh Desai 8,210 Reputation points Microsoft External Staff Moderator
    2026-06-25T08:44:12.2166667+00:00

    Hi @Hanne Dahlen

    Thank you for reaching out to Microsoft Q&A.

    The behavior you are seeing is expected when Test Suites are imported from one Azure DevOps project into another. When you use the Import Test Suites feature, Azure DevOps imports the test cases as references to the original test case work items rather than creating independent copies. As a result, both Project 1 and Project 2 point to the same underlying test cases. Any modification made to a test case in Project 2 is reflected in Project 1 because the test case is shared between both projects. Azure DevOps currently does not provide a direct "Undo Import" or "Unlink Imported Test Suite" option after the import has been completed.

    Refer below points to resolve this issue or as a workaround:

    1. Create Independent Copies of the Test Cases

    Instead of using the imported references, create cloned or copied test cases in Project 2.

    Steps:

    • Open the imported Test Suite in Project 2.
    • Select the required test cases.
    • Choose More Options (...) → Copy Test Case or Clone Test Case.
    • Select Project 2 as the destination project, test plan, and test suite.
    • This creates new test cases with new IDs that are completely independent from Project 1.

    2. Remove the Imported Test Case References from Project 2

    After the cloned copies have been created successfully:

    • Remove the imported test cases or the imported test suite from Project 2.
    • This action removes only the references in Project 2.
    • The original test cases and test suites in Project 1 remain unaffected.

    3. Verify the Test Case IDs Before Removing Anything

    Before deleting or removing any test cases:

    • Open the test case in Project 2.
    • Check the Test Case ID and linked items.
    • If the ID is the same as the test case in Project 1, it is still a shared reference.
    • If the cloned test case has a different ID, it is an independent copy, and changes will no longer affect Project 1.

    4. Use Copy/Clone Instead of Import for Future Migrations

    For future scenarios where you need separate test cases across projects:

    • Use Copy Test Case or Clone Test Case.
    • Avoid Import Test Suite when the intention is to maintain independent test cases.
    • Microsoft documentation states that imported test suites add test cases as references and not as cloned copies

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.