为特定州添加新原因 [英] Adding new Reason for a specific State

查看:57
本文介绍了为特定州添加新原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在XML中为任务WIT(敏捷模板)添加了特定状态的新原因。


我已经完成了转换和所有操作,但是当我在TFS中工作并为某个任务更改状态时,我无法选择所有已定义的转换原因,只显示默认原因且无法更改。


也许有人可以告诉我问题可能是什么,或者除了在Task XML中我还应该在哪里定义这些原因?




Tnx和最好的问候,


Sanja

解决方案

你好  Sanja Alimpijevic,


当然,您需要从TFS导出项目的CommonConfiguration.xml。


然后你需要编辑它并添加你的理由,就像这样:

< BugWorkItems category =" Microsoft.BugCategory" pluralName = QUOT;臭虫" singularName = QUOT;臭虫"> 
< States>
< State type ="建议的"值= QUOT;最新及QUOT; />
< State type =" InProgress"值= QUOT;活动" />
< State type ="完成"值= QUOT;关闭" />
< State type ="已解决"值= QUOT;解决" />
< / States>
< / BugWorkItems>

然后将其导回。


P.S。不要忘记使用cmd和以下命令:


cd c:\program files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \IDE \

witadmin exportprocessconfig /collection:http://yourtfs.com:8080/tfs/yourcollection / p:yourproject /f:c:\yourpath\CommonConfiguration.xml

witadmin importprocessconfig / collection: http://yourtfs.com:8080/tfs/yourcollection / p:yourproject /f:c:\yourpath\CommonConfiguration.xml



Hello everyone,

I have added a new reasons for a specific state in XML for Task WIT (Agile template).

I have made transitions and everything, but when I work in TFS and change a state for some task, I don't have the option to choose between all defined reasons for that transition, only the default reason appears and can not be changed.

Maybe someone could tell me what a problem might be or where should I define these reasons besides in Task XML as I have already done ?

Tnx and best regards,

Sanja

解决方案

hello Sanja Alimpijevic,

Defiinitely, you need to export CommonConfiguration.xml of your project from TFS.

Then you need to edit it and add your reasons, like this way:

<BugWorkItems category="Microsoft.BugCategory" pluralName="Bugs" singularName="Bug">
    <States>
      <State type="Proposed" value="New" />
      <State type="InProgress" value="Active" />
      <State type="Complete" value="Closed" />
      <State type="Resolved" value="Resolved" />
    </States>
  </BugWorkItems>

and after that import it back.

P.S. do not forget use cmd and following commands:

cd c:\program files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\
witadmin exportprocessconfig /collection:http://yourtfs.com:8080/tfs/yourcollection /p:yourproject /f:c:\yourpath\CommonConfiguration.xml
witadmin importprocessconfig /collection:http://yourtfs.com:8080/tfs/yourcollection /p:yourproject /f:c:\yourpath\CommonConfiguration.xml


这篇关于为特定州添加新原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆