Skip to content
  • Blog
  • Events
  • Help
  • Careers
  • Contact
New Signature
  • About
      • Company

        Cognizant Microsoft Business Group is dedicated to changing the way businesses innovate, transform and run based on a unique cloud operating model. You will now be redirected to our new microsite to learn more.

        View Company

      • Awards

        As a company, we are regularly recognized within the IT industry as well as the communities we serve.

        View All Awards
      • News

        Read the most up-to-date corporate announcements, Microsoft technology updates, innovative business solutions and learn more about how the Cognizant Microsoft Business Group can take your business even farther.

        View News

      • Partners

        New Signature works with a number of outstanding technology companies to deliver the best experiences to our customers.

        View Partners
      • Leadership

        Cognizant Microsoft Business Group’s executive team is comprised of innovative leaders with proven experience and deep industry expertise. You will now be redirected to our new microsite to learn more.

        View Leadership

      • Industries

        Our solutions are tailored to empower organizations across a wide range
        of industries.

        View Industry Experience
    Close
  • Solutions
      • Intelligent Enterprise
        Solutions

        Going Digital
        Unleash cloud capability, deliver change and compete at speed with a Microsoft digital operating model, enabling you to work more efficiently as you transform your IT environment. Learn More

      • Featured Solution

        Secure Cloud
        In a world of constant threat, ensuring that your underlying cloud platform is protected is the first step on your organization’s journey towards a secure, compliant operating environment. Learn More
      • Intelligent Workplace
        Solutions

      • Secure Workplace

        Work Anywhere

        Endpoint Health

        Identity Health

        Teamwork Support



        VIEW WORKPLACE SOLUTIONS
      • Intelligent Cloud
        Solutions

      • App Factory

        Azure Accelerator

        Azure Launchpad

        Azure Launchpad for DevOps

        Application Health

        Platform Health

        VIEW ClOUD SOLUTIONS
    Close
  • Services
      • Begin your journey towards becoming a digital business with GO, our unique end-to-end framework based on the Microsoft Cloud Adoption Framework.

        GO DIGITAL OPERATING MODEL
      • Intelligent Enterprise

      • Consulting

        We go beyond just technology to help your organization understand how digital can help you uniquely differentiate and better serve your employees and customers.

        VIEW ENTERPRISE SERVICES
      • Intelligent Workplace

        • Identity

          Identity is your new first-line-of-defense. It’s vital to your users and clients that your identity platform is properly configured and secured.

          Endpoint

          Whether your devices are on-premises or remote, personal or business-owned, we can ensure they are properly managed and protected.

          Teamwork

          Today’s workforce is collaborating than ever before.  We can empower your current teams with tomorrow’s progressive technologies.

          VIEW WORKPLACE SERVICES
        • Intelligent Cloud

          • Platform

            The cloud is no longer some future-state. It’s the here and now. Adopting a cloud-first platform is one of the best ways to maintain a future-proofed competitive advantage.

            Applications

            We build cloud-native apps and modernize legacy systems with the power of Azure to give your organization a competitive edge.

            Data

            We can help your organization create secure, scalable data platforms to deliver simpler and more sophisticated insights to your business.

            VIEW CLOUD SERVICES
        Close
      • Client Stories
          • Case Studies

            Browse a comprehensive list of companies who have created successful partnerships and experienced transformative solutions with New Signature.

            View All Case Studies

          • Featured Case Study TalkTalk Modern Workplace

            New Signature worked with TalkTalk to define a new Modern Workplace solution based on Microsoft 365, which kept the user firmly at the center of the transformation.
            View Case Study

          • Testimonials

            We love transforming our customers businesses, take a look at what they have to say about New Signature.

            View Testimonials

          • Featured Testimonial Davis Construction

            With New Signature’s help, Davis was able to take a progressive step forward by migrating their private branch exchange (PBX) phone system to a Voice of Internet Protocol (VoIP) system.
            View Testimonial

        Close
      • Explore
          • Guides & Ebooks

            Dive deeper into education with your team by leveraging our expert-developed guides and eBooks.

            View All Guides & Ebooks

          • Infographics

            Rich with statistics and information, our infographics are great tools for quick but insightful learning.

            View All Infographics
          • Podcast: Office Explorers

            Join Kat and Rob monthly as they chat with New Signature experts and explore the world of O365.

            Listen to Podcasts

          • Videos

            Visit our videos stream to access recorded webinars, service information and to learn more about us.

            WATCH ALL VIDEOS
          • Flyers

            Searching for information about our services? Our flyers are a great takeaway for all those details.

            VIEW ALL FLYERS

          • Featured Stream

            Learn more about the tooling and expertise required to unlock productivity and mobilize your teams.

            MODERN WORKPLACE
        Close
        Close
      Blog

      Cloning Test Plans Between Team Projects in Azure DevOps

      New Signature / Blog / Cloning Test Plans Between Team Projects in Azure DevOps
      April 13, 2020February 19, 2020| Ryan Buchanan

      Azure DevOps, and TFS/VSTS before it, has always had an interesting problem with Team Projects.  The recommended architecture by most in the field–and Microsoft itself– is a single Team Project for all of your work.  However, in my experience many users are given an Azure DevOps organization and told to start developing. The first thing they do is make a project for each business unit, solution, and any other subdivision of their organization they can think of.  At some point, they may start looking at best practices or bringing in someone to help with their process, but to some extent the damage has already been done.  Thankfully, moving items between projects is easier than ever before.  Work items can be easily moved to new projects and teams using the GUI.

      The Problem

      However, there is a glaring exception to this for those of us who use Test Plans in Azure DevOps.  You cannot move any Work Items that support test management (test cases, suites or plans).  If you, like many organizations, started in many different projects, or even had a dedicated QA project and want to consolidate, this becomes a problem.  Depending on how many items in question, you have a few options at this point.  You can create a copy of each test case and change its project.  This is a relatively simple process if you have a few cases, but what if you have hundreds?

      If so, the next option would be to create a query-based Test Suite in the new project.  With “Query across projects” selected, you can target Test Cases in a specific team project or across your organization.  You can, of course, refine down from there as needed, and then add them to a suite in your new project.  This method allows you to automatically pick up items from other projects, but doesn’t allow for the same control as if they were all part of the same project.

      Solution

      The last and cleanest option is to clone the test plans entirely.  While not supported using the GUI, the always useful Azure DevOps API gives us the tools we need to clone a test plan.  Using this, you can clone a specific test plan ID to another project.  This is not the whole picture if you are using many different plans in the same project.  As usual, we’ll need to chain a few requests together.  My weapon of choice for these sorts of tasks is Powershell.  Below is first how you would get all the test plans from the initial project

      $Url = "$projectUrl/_apis/test/plans?api-version=5.0"
      $response = Invoke-RestMethod -Uri $Url -Headers $headers -Method Get -ContentType application/json;

      The list request will get you much more information than you need.  All we really care about is the ID, and possibly the plan names, if you want to keep them the same.  So we can loop through these easy enough and post them to the new project

      $response.value | ForEach-Object {
      $ID = $_.id
      $Url = "$projectUrl/_apis/test/Plans/$ID/cloneoperation?api-version=5.0-preview.2"
      Invoke-RestMethod -Uri $Url -Headers $headers -Body $body -Method Post -ContentType application/json;
      }

      Now we have cloned all of our test plans and the associated suites and cases into our new project.  This can obviously be refined further, depending on how you want the cases organized in the new structure, but it demonstrates that Test Plans can be moved between projects, even if all the support hasn’t made it to the GUI yet.

      I often get asked if Azure DevOps can be used for a specific task, or to support a specific process.  While there are always features that are missing from the platform out of the box, what I find to be incredibly useful is how versatile the customization is.  Using the API you have access to an enormous amount of information and functionality for the platform, so I’ve yet to come across a request that could not possibly be done.  The real trick lies in figuring out why are we doing such a unique task, determining whether the time investment is going to give returns, and deciding if there is there any way to improve this process.  If you ever need help answering these questions or figuring out the right script for the job your expert partners at New Signature can help with that.

      Categories
      Tips and Tricks
      Contact New Signature

      Managed Services

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum, enim ac dignissim aliquet

      VIEW ALL MANAGED SERVICES

      Professional Services

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum, enim ac dignissim aliquet

      VIEW ALL PROFESSIONAL SERVICES

      New Signature

      About

      • Company
      • Awards
      • News
      • Leadership
      • Partners
      • Industries

      Solutions

      • Intelligent Enterprise Solutions
      • Intelligent Workplace Solutions
      • Intelligent Cloud Solutions

      Services

      • GO
      • Intelligent Enterprise
      • Intelligent Workplace
      • Intelligent Cloud

      Client Stories

      • Client Stories
      • Testimonials

      Explore

      • Guides & Ebooks
      • Podcasts
      • Flyers
      • Infographics
      • Videos
      Copyright © 2023 New Signature
      • Blog
      • Events
      • Careers
      • Help
      • Anti Slavery
      • Privacy Policy
      • Contact
      • About
        • Company
        • Awards
        • News
        • Leadership
        • Partners
        • Industries
      • Services
        • GO
        • Intelligent Enterprise
        • Intelligent Workplace
        • Intelligent Cloud
      • Client Stories
        • Case Studies
        • Testimonials
      • Technologies
      • Explore
        • Guides & Ebooks
        • Infographics
        • Podcast: Office Explorers
        • Videos
        • Flyers
      • Blog
      • Events
      • Careers
      • Contact
      • Search
      Cookie Settings
      New Signature uses "Required Cookies" to run our website, "Functional Cookies" used by third parties to personalise marketing, including social media features.

      Change your preferences by clicking the “Cookie Settings” link at the bottom of every page. Learn more about cookies in our Cookie Policy and our Privacy Policy. By clicking the “Accept Cookies” button below, you consent to our use of cookies.

      Please note that “Required Cookies” will be set regardless of your consent.
      Cookie SettingsAccept Cookies
      Privacy & Cookies Policy

      Privacy Overview

      This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
      Performance

      Performance Cookies provide Content Delivery Network assets that deliver faster site content delivery capabilities.

      Required

      These cookies are required mainly in order to deliver Multilanguage site capabilities.

      Functional

      Functional Cookies allow us to provided advanced media capabilities including videos, surveys and other multimedia capabilities.

      Disabling Functional cookies will block the playing of videos and other multimedia site components.

      Targeting

      Targeting Cookies are used to capture user information in order for New Signature to deliver better user experiences.

      Save & Accept