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

David Rogers

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 to add a new Activity type on the Task work item in VSTS and, if so, how can I do it? Thanks!"

I've followed the instructions explained here to export and modify my custom project template. However when I follow the instructions here(Step 5 of the original instructions) I get stuck at the "Configure Features" step, that does not appear in my implementation of TFS (Yes, my user account is part of "Project Collection Administrators"): enter image description here enter image description here

I'm sort of confused, there are people that claim this can't be done. In fact it's even stated in the process page:

"Changes you make to a process template will only apply to new team projects. They will not affect existing team projects."

But the instructions clearly indicate that it can be, I just done see the "Configure features" link? The instructions indicate that the use case is after a TFS update, but if I just changed my custom template, how would I enable this, so I can implement my changes in the custom template?

Andy Li-MSFT

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:

      enter image description here

    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

enter image description here

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

how to close all the activities and start a new activity with new task in android

分類Dev

How to set 'Assigned to' in TFS Work item through code?

分類Dev

How to add a new field to Julia type?

分類Dev

Activity.finishAffinity()とIntent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK

分類Dev

Open new Activity when pressing on an item

分類Dev

New Activity not opening on List Item Click

分類Dev

How can I implement the ability to add a new task to an existing list (project) or to a new one

分類Dev

Specifying the projectname within the DesktopPackageLocation during the Visual Studio Build task in TFS 2018

分類Dev

TFS : Send mail to user if work item or comments are not provided

分類Dev

Get work item store from Tfs using powershell

分類Dev

Android - ListView item click show data to new activity

分類Dev

using react-dnd beautiful how do I insert new item into the array, or does it not work?

分類Dev

Editing the field definition of a work item type

分類Dev

New to java. How to add the item to specific repositories using a text file

分類Dev

Want to Add Dialog(Another Activity) when menu item selected

分類Dev

フラグ付きのstartactivityforresultの使用FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TASK

分類Dev

How to simply create a folder with a task on TFS 2017 build definition?

分類Dev

How to add Badges on UIBarbutton item?

分類Dev

How to add an item to a group in a submenu

分類Dev

How to add an item to the top of a ListBox

分類Dev

Where are "Fragment Layout Name" and "Navigation Type" options for a new Android activity?

分類Dev

Android how to add back button in activity to return back in fragment activity

分類Dev

How to cancel previous Task if new request recieved?

分類Dev

How to add AsyncTask to a public class with no activity?

分類Dev

Android通知:Intent.FLAG_ACTIVITY_NEW_TASKが必要ですか?

分類Dev

終了ボタンを作成するときは FLAG_ACTIVITY_NEW_TASK

分類Dev

How to add GFM task lists in Jekyll?

分類Dev

How to set the distribution type in the wrapper task

分類Dev

How to start different activity using switch case in the menu item?

Related 関連記事

  1. 1

    how to close all the activities and start a new activity with new task in android

  2. 2

    How to set 'Assigned to' in TFS Work item through code?

  3. 3

    How to add a new field to Julia type?

  4. 4

    Activity.finishAffinity()とIntent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK

  5. 5

    Open new Activity when pressing on an item

  6. 6

    New Activity not opening on List Item Click

  7. 7

    How can I implement the ability to add a new task to an existing list (project) or to a new one

  8. 8

    Specifying the projectname within the DesktopPackageLocation during the Visual Studio Build task in TFS 2018

  9. 9

    TFS : Send mail to user if work item or comments are not provided

  10. 10

    Get work item store from Tfs using powershell

  11. 11

    Android - ListView item click show data to new activity

  12. 12

    using react-dnd beautiful how do I insert new item into the array, or does it not work?

  13. 13

    Editing the field definition of a work item type

  14. 14

    New to java. How to add the item to specific repositories using a text file

  15. 15

    Want to Add Dialog(Another Activity) when menu item selected

  16. 16

    フラグ付きのstartactivityforresultの使用FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TASK

  17. 17

    How to simply create a folder with a task on TFS 2017 build definition?

  18. 18

    How to add Badges on UIBarbutton item?

  19. 19

    How to add an item to a group in a submenu

  20. 20

    How to add an item to the top of a ListBox

  21. 21

    Where are "Fragment Layout Name" and "Navigation Type" options for a new Android activity?

  22. 22

    Android how to add back button in activity to return back in fragment activity

  23. 23

    How to cancel previous Task if new request recieved?

  24. 24

    How to add AsyncTask to a public class with no activity?

  25. 25

    Android通知:Intent.FLAG_ACTIVITY_NEW_TASKが必要ですか?

  26. 26

    終了ボタンを作成するときは FLAG_ACTIVITY_NEW_TASK

  27. 27

    How to add GFM task lists in Jekyll?

  28. 28

    How to set the distribution type in the wrapper task

  29. 29

    How to start different activity using switch case in the menu item?

ホットタグ

アーカイブ