I installed TFS 2018 on the premises and I migrated 2 project collections from a TFS 2012 server. I have a hard time finding the page/dialog where I can assign different colors to the work items states. For the previous versions, MS provided visual studio extensions: Process Templates Editor, TFS 2015 Power Tools. I use VS 2022. I haven't been able to find an extension for editing these lists that would work with VS 2022 and TFS 2018.
Can you please tell me how can I assign different colors to the work items states, and where I can customize the list?
TIA
Currently there is no such an extension (Process Templates Editor) for VS 2022.
However, we can export the work item type and process definition files using witadmin tool, then customize it with a txt editor, then import the changed files back to your project.
To run the
witadmin
command-line tool, open a Command Prompt window where Visual Studio is installed. Thewitadmin
command-line tool installs with any version of Visual Studio.For Visual Studio 2022, it's under the following path:
or
Professional
orEnterprise
in place of Community, depending on the version you've installed.StateColors
to define the colors. See Specify properties and behaviors. Below steps for your reference:witadmin exportprocessconfig /collection:http://servername:8080/tfs/DefaultCollection /p:YourProjectName /f:E:\temp\ProcessConfiguration.xml
Open the
ProcessConfiguration.xml
with text editor, add propertyStateColors
to define the state colors underProperties
block, save the changes.Import the process configuration definition back to your project:
witadmin importprocessconfig /collection:http://servername:8080/tfs/DefaultCollection /p:YourProjectName /f:E:\temp\ProcessConfiguration.xml
Check the state colors:
Test
" state forTask
work item type for example here)1.Export the Task work item type:
2.Open the exported
Task.xml
file with text editor and add a new stateTest
under witd > WORKITEMTYPE > WORKFLOW > STATES:3.Modify the transitions to go through the new state (Add the transitions as needed, from ="In Progress" to="Test" for example here):
4.Import the Task definition file:
5.Check the state list.