How to add a new Activity type to the Task work item in TFS 2018

前端 未结 1 1291
感动是毒
感动是毒 2021-01-21 22:38

I would like to do exactly what is being proposed in this question, but instead of VSTS, I\'d like to do it in on a On-Premise TFS(2018):

\"Is it possible

相关标签:
1条回答
  • 2021-01-21 23:24

    Try below ways to achieve that:

    • Import, export, and manage work item types with witadmin

      1. Export the specific work item type definition file (Task in your scenario). Run command prompt with administrator, if you are using VS 2017, then cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer

        witadmin exportwitd /collection:http://server:8080/tfs/DefaultCollection /p:ProjectName /f:C:\temp\MyTask.xml /n:Task

      2. Edit the exported WIT definition file (xml) with text editor, add a new Activity Type (e.g.: TestActivity0727in below sample) like below:

      3. Save the file and import to TFS with witadmin command:

        witadmin importwitd /collection:http://server:8080/tfs/DefaultCollection /p:ProjectName /f:C:\temp\MyTask.xml /n:Task

      4. Refresh the page, now the new activity should be worked in Task work item.
    • Edit with TFS Process Template Editor, reference below screenshot:

      For VS 2017, install the extension TFS Process Template Editor

      For VS 2015, just install Microsoft Visual Studio Team Foundation Server 2015 Power Tools

    0 讨论(0)
提交回复
热议问题