Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
Important
For the On-premises XML process model, you can use witadmin to list, import, export, and modify a process for a project. For the Inherited and Hosted XML process models, you can only use witadmin to list and export process information. For an overview of process models and what is supported, see Customize your work tracking experience.
You customize the process configuration to modify the display of the web portal Agile tools. A few additional tools require that you map workflow states to metastate mappings.
Note
If you receive error message TF400917, an invalid configuration has occurred. Re-import the process configuration file to your project using witadmin importprocessconfig
. You'll get the messages you need to resolve the error.
To manage the process configuration for a project, use the witadmin
command line tool to export and import the process configuration XML definition file. To learn about process configuration, see ProcessConfiguration.
exportprocessconfig
: Exports the process configuration definition to an XML file or the Command Prompt window.importprocessconfig
: Imports the process configuration definition XML file.To run the witadmin
command-line tool, open a Command Prompt window where Visual Studio is installed. The witadmin
command-line tool installs with any version of Visual Studio. You can access this tool by installing the free version of Visual Studio Community or Visual Studio Team Explorer.
Note
To connect to Azure DevOps Services, we recommend that you use the latest version of Visual Studio or Visual Studio Community.
Note
To connect to an on-premises server, we recommend that you use the same or later version of Visual Studio as your Azure DevOps Server. For example, if you connect to Azure DevOps Server 2019, then connect to your project from a version of Visual Studio 2019.
For Visual Studio 2022
%programfiles(x86)%\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
or Professional
or Enterprise
in place of Community
, depending on the version you installed.
For Visual Studio 2019
%programfiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
or Professional
or Enterprise
in place of Community
, depending on the version you installed.
For Visual Studio 2017
%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
or TeamExplorer
or Professional
in place of Enterprise
, depending on the version you installed.
On a 32-bit edition of Windows, replace %programfiles(x86)% with %programfiles%. You can install Visual Studio Community (which provides access to Team Explorer) or Visual Studio Team Explorer 2017 for free.
Tip
With witadmin, you can import and export definition files. Other tools you can use include the Process Editor (requires that you have installed a version of Visual Studio). Install the Process Template editor from the Visual Studio Marketplace.
For more information, see Change project collection-level permissions.
witadmin exportprocessconfig /collection:CollectionURL /p:ProjectName [/f:FileName] [/e:encoding]
witadmin importprocessconfig /collection:CollectionURL [/p:ProjectName] /f:FileName [/e:encoding] [/v]
Parameter
Description
/collection:CollectionURLx
Specifies the URI of the project collection. For example:
On-premises Azure DevOps format: http://ServerName:Port/VirtualDirectoryName/CollectionName
If no virtual directory is used, then the format for the URI is the following: http://ServerName:Port/CollectionName
.
/p:ProjectName
Required. Specifies the project for which you want to export or import the process configuration. This project must be defined in the collection that you specified by using the /collection parameter. You do not need to specify a project when you specify the /v
switch.
/f**:FileName
The path and the name of the XML definition file for the process configuration to export or import.
Note
If the client computer is running Windows Vista, you might not have permissions to certain folders. If you try to export the global list to a location where you do not have permissions, the registry virtualization technology automatically redirects the exported file and saves it to the virtual store. For more information, see the Registry Virtualization page on the Microsoft website. To avoid this redirection, you can export the file to a location where you have permissions.
/e:Encoding
Optional. The name of a .NET Framework 2.0 encoding format. The specified encoding will be used to export or import the XML data. For example, /e utf-7
specifies Unicode (UTF-7) encoding. If you omit this parameter, witadmin attempts to detect the encoding and uses UTF-8 if detection fails.
/v
Optional. Validates the XML that defines the process configuration but doesn't import the definition file.
/?
or help
Displays help about the command in the Command Prompt window.
Installing the latest version of Azure DevOps upgrades existing projects. If you are updating an upgraded project, see Configure features after an upgrade.
If you encounter problems accessing existing test plans or test suites after an upgrade, see Manual updates to support test management.
The following values apply in each example:
http://AdventureWorksServer:8080/tfs/DefaultCollection
Contoso
8080
You can add fields for any quick add panel. For example, the following example adds Business Value to the product backlog panel.
The panel only displays fields that are included in the FIELDS
section of the WIT definition for the WIT selected. For example, if you select the bug WIT, then only Title displays, as Business Value isn't defined for bugs. To add another WIT to the panel, you add it to the Requirements Category. See Add a work item type to a backlog and board.
If you don't have administrative permissions for your project, get them.
Open a Command Prompt window according to the instructions provided in How to run the witadmin command-line tool. For example:
cd %programfiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
Export the process configuration file.
witadmin exportprocessconfig /collection:CollectionURL /p:ProjectName /f:"DirectoryPath\ProcessConfiguration.xml"
An example of a CollectionURL is http://MyServer:8080/tfs/TeamProjectCollectionName.
Add the field reference name to the AddPanel
section.
For example, the following syntax adds the Priority element to the panel.
<AddPanel>
<Fields>
<Field refname="System.Title" />
<Field refname="Microsoft.VSTS.Common.BusinessValue" />
</Fields>
</AddPanel>
Tip
Import the process configuration file.
witadmin importprocessconfig /collection:CollectionURL /p:ProjectName /f:"DirectoryPath\ProcessConfiguration.xml"
Refresh your backlog page to view the updated panel.
If you customize the WORKFLOW
section of the test plan or test suite, you must map the states to metastates.
In the following example, the test plan workflow has been updated to use the Design, Testing, and Signed Off states. To support backward compatibility, the TestPlanWorkItems
is added to the ProjectProcessConfiguration
section of the process configuration definition.
Workflow
<WORKFLOW>
<STATES>
<STATE value="Design" />
<STATE value="Testing" />
<STATE value="Signed Off" />
</STATES>
<TRANSITIONS>
<TRANSITION from="" to="Design">
<REASONS>
<DEFAULTREASON value="New test plan" />
</REASONS>
</TRANSITION>
<TRANSITION from="Design" to="Testing">
<REASONS>
<DEFAULTREASON value="Authoring complete" />
</REASONS>
</TRANSITION>
<TRANSITION from="Testing" to="Signed Off">
<REASONS>
<DEFAULTREASON value="Signed Off testing" />
</REASONS>
</TRANSITION>
<TRANSITION from="Signed Off" to="Design">
<REASONS>
<DEFAULTREASON value="Reactivating to authoring phase" />
</REASONS>
</TRANSITION>
<TRANSITION from="Signed Off" to="Testing">
<REASONS>
<DEFAULTREASON value="Reactivating to run tests" />
</REASONS>
</TRANSITION>
<TRANSITION from="Testing" to="Design">
<REASONS>
<DEFAULTREASON value="Back to authoring" />
</REASONS>
</TRANSITION>
</TRANSITIONS>
</WORKFLOW>
Metastate mappings
<TestPlanWorkItems category="Microsoft.TestPlanCategory" pluralName="Test Plans" singularName="Test Plan">
<States>
<State type="InProgress" value="Design" />
<State type="InProgress" value="Testing" />
<State type="Complete" value="Signed Off" />
</States>
</TestPlanWorkItems>
<TestSuiteWorkItems category="Microsoft.TestSuiteCategory" pluralName="Test Suites" singularName="Test Suite">
<States>
<State type="Proposed" value="In Planning" />
<State type="InProgress" value="In Progress" />
<State type="Complete" value="Completed" />
</States>
</TestSuiteWorkItems>
If you modify the test suite workflow, then you have to make a similar update if you want to map new states. You would add it within a TestSuiteWorkItems
section. See ProcessConfiguration.
A: When you add or remove workflow states to the following work item types, you should consider updating the process configuration to add or remove corresponding metastate mappings.
Work item types that belong to the Requirement Category or Task Category: Metastate mappings support the display of the Agile planning tools.
Work item types that belong to the Bug Category: Metastate mappings to support My Work tool (Agile and CMMI-based projects).
Test Plan and Test Suite: Updates to the workflow of these work item types must be mapped only when you support team members connecting to Azure DevOps from a version of Test Manager that is based on Visual Studio 2013.2 or earlier version.
Update the metastate mappings if you receive an Application detected an unexpected fault error when you connect to your project.
A: When you make one of the following changes to a project, you'll need to update the definitions for the work item type, categories, or process configuration. To avoid errors, always make your changes in this order: (1) work item types, (2) categories, and (3) process configuration.
Customization
Update or verify the work item type definition
Update or verify the process configuration definition
Add a work item type to the Requirements Category
(A work item type can belong to the Requirements Category or the Task Category, but not both.)
To include the following fields:
type=Effort
in the process configuration file)type=Team
in the process configuration fileAddPanel
section of the process configuration file (fields must be defined within the FIELDS
section but don't have to be included within the FORM
section.To contain the necessary metastate mappings:
type="Proposed"
type="InProgress"
type="Complete"
type="Complete"
<WorkItemColor primary="FF009CCC" secondary="FFD6ECF2" name="Product Backlog Item" />
Change the workflow of a work item type in the Requirements Category
N/A
To contain the necessary metastate mappings as described above for adding a work item type to the Requirements Category.
Add a work item type to the Task Category
To include the following fields:
type=Activity
in the process configuration file)type=RemainingWork
in the process configuration file)type=Team
in the process configuration fileTo contain the necessary metastate mappings:
type="InProgress"
type="Complete
"type="Complete"
To contain an entry to define the color codes associated with the WIT. For example:
<WorkItemColor primary="FFF2CB1D" secondary="FFF6F5D2" name="Task" />
Change the workflow of a work item type in the Task Category
N/A
To contain the necessary metastate mappings as described above for adding a work item type to the Task Category.
Add a work item type to the Bug Category (Agile and CMMI only)
Change the workflow of a work item type in the Bug Category (Agile and CMMI only)
N/A
To contain the necessary metastate mappings:
type="Proposed"
type="InProgress"
You can have only one State mapped to type="Complete"
For more information, see Support bug update status using My Work.
Remove a work item type from the Requirements Category or Task Category
N/A
To remove any metastate mappings that are only associated with that work item type
Remove a work item type from a project
To remove the work item type from the categories file.
To remove any metastate mappings that are only associated with the work item type that you removed and the WorkItemColor
element that defines the color codes for the work item type you removed.
A: The default experience supports one level of portfolio backlog. You can add up to five levels as described in Add portfolio backlogs to Agile tools.
A: If you've added a custom work item type and want to add that to either the backlog or task board, you can. You just can't have them appear in both places. Learn how by reading Add work item types to backlogs and boards.
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now