Microsoft

Copy a work item type using Azure DevOps API's

Jun 9, 2022Art Garcia
Copy a work item type using Azure DevOps API's
SummaryAI, from the source post

This post details how to programmatically copy work item types using Azure DevOps APIs. It outlines the process of creating a new work item type, then iterating through the source work item type's pages, sections, groups, and controls to replicate them in the new work item type. Specific technical challenges and undocumented behaviors are addressed, including handling multi-line text fields (HTMLFieldControl) which require special group encapsulation, custom control extensions (like multi-select fields) that need unique IDs and reference names, and boolean fields that require a default value. The post provides code snippets demonstrating API calls for adding fields, groups, and controls, and highlights the need for careful handling of different control types and their specific API requirements.

More from the Azure Boards New Hubs Default Experience trail