Recently I had a customer request to update their process definition in Visual Studio Team Services (VSTS). They had 30+ different processes migrated from TFS (Team Foundation Server), so they were all Hosted XML processes.
Somehow they had the process setup like this:
Which they requested me to convert to this:
In TFS you would grab witadmin and change the process in a pretty straigthforward manner (once you’ve figured out all places you need to update!). Unfortunately, you cannot run the change commands in witadmin against VSTS, only the list and export commands will work: see here. Microsoft is working on a REST api to perform administrative tasks against VSTS. Luckily for me, they have also wrapped the REST calls in a nice C# NuGet package (link)!
Making changes to the process template isn’t available (yet?), although there is a strange method available named ‘UpdateWorkItemTypeDefinitionAsync’ in the ‘WorkItemTrackingClient’. The only info I can find about this is here, which seems to indicate that you can only update (maybe add) a specific Work Item Type. Since I also needed to update the tree structure in the ProcessConfiguration.xml file, I still need to export the process, make the necessary changes in the xml files, zip it back up and upload the file back into VSTS.
After doing so, the request was to convert all the old Epics to the new Features. Off course, you can do this by using a query on the Epic work item type and using the UI to change them to Features, but this would take a lot of manual actions to do.
It took me some figuring out to get a good workflow in an application, so I have made the tools source available on my github account.