如何向 TFS 2018 中的任务工作项添加新的活动类型

编程入门 行业动态 更新时间:2024-10-11 05:25:32
本文介绍了如何向 TFS 2018 中的任务工作项添加新的活动类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我想完全按照这个问题提出的建议去做,但我想在本地 TFS(2018) 上做,而不是 VSTS:

<块引用>

我有点困惑,有人声称这

保存文件并使用witadmin命令导入到TFS:

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

刷新页面,现在新活动应该在Task中工作工作项.

使用TFS 流程模板编辑器进行编辑,参考以下截图:

对于 VS 2017,安装扩展

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"):

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?

解决方案

Try below ways to achieve that:

Import, export, and manage work item types with witadmin

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

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

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

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

这篇关于如何向 TFS 2018 中的任务工作项添加新的活动类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 18:38:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1398119.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:类型   工作   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!