Search code examples
tfsazure-devopstfs-workitemtfs-sdk

Is it possibile to add a new work item type through custom extension or REST API?


I'd like to know if in a custom process template is possibile to add: - new work item type - new field in pre-existing work item type through custom extension (to be developed by me) and/or REST-API?

More specifically, my question is related to the fact that in Azure DevOps Server 2019, using xml process template, is possible to add new work item type and/or new field only programming in xml or is also possible to add them through custom extension (to be developed by me) and/or REST API?


Solution

  • For inherited process templates, you can manage work item types,fields with REST API:

    1. Work Item Types - Create
    2. Fields - Add
    3. States - Create

    For xml process, you can work through xml definition of work item type:

    1. Export some basic work item type with witadmin Import, export, and manage work item types
    2. Change xml file with your custom code (through XmlDocument or as text): change the name, add field..... XML element reference
    3. Import it back Import, export, and manage work item types