复制的WIT不会计算Backlog bord中的剩余时间

时间:2017-03-09 10:06:00

标签: tfs tfs2015 tfs-workitem workitem queueuserworkitem

我已经复制了WIT"用户故事",使其成为新的WIT并将其重命名为" PR"。该工作项目还有"剩余工作"和"原始估计"。但是当我进入时间时,它不会在董事会中计算出来。

另一方面," Bug"得到的恰到好处。我已经检查了字段,它们是相同的(Field Control,VSTS.Sheduling.RemaningWork,Type Double,reaportable Measure,formula SUM等)

任何提示?

1 个答案:

答案 0 :(得分:1)

要让TFS按照您描述的方式处理这些字段,需要做一些事情。首先检查您的ProcessConfiguration.xml文件(在您的流程模板的文件夹:.\WorkItem Tracking\Process中)。检查哪个字段配置为剩余工作:

<?xml version="1.0" encoding="utf-8"?>
<ProjectProcessConfiguration>
  <TypeFields>
    <TypeField refname="System.AreaPath" type="Team" />
    <TypeField refname="Microsoft.VSTS.Scheduling.RemainingWork" type="RemainingWork" format="{0} h" />
    <TypeField refname="Microsoft.VSTS.Common.StackRank" type="Order" />
    <TypeField refname="Microsoft.VSTS.Scheduling.StoryPoints" type="Effort" />
    <TypeField refname="Microsoft.VSTS.Common.Activity" type="Activity" />
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationStartInformation" type="ApplicationStartInformation" />
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationLaunchInstructions" type="ApplicationLaunchInstructions" />
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationType" type="ApplicationType">

...

在上面的示例中,您可以看到Microsoft.VSTS.Scheduling.RemainingWork用作RemainingWork字段。确保您的PR WIT使用此字段而不是具有相同标签的自定义字段,refname必须为Microsoft.VSTS.Scheduling.RemainingWork

<FIELD name="Remaining Work" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="Double" reportable="measure" formula="sum">
        <HELPTEXT>An estimate of the number of units of work remaining to complete this task</HELPTEXT>
      </FIELD>

接下来在同一文件中检查哪个类别被配置为“任务级别”:

<TaskBacklog category="Microsoft.TaskCategory" pluralName="Tasks" singularName="Task" workItemCountLimit="1000">
    <States>
      <State value="New" type="Proposed" />
...
</TaskBacklog>

在上面的示例中,您可以看到Microsoft.TaskCategory已配置为要用作任务积压的类别。

接下来检查您的categories.xml文件(在流程模板的.\WorkItem跟踪文件夹中)并验证您创建的WIT是否在任务类别中:

<CATEGORY name="Task Category" refname="Microsoft.TaskCategory">
    <DEFAULTWORKITEMTYPE name="Task" />
  </CATEGORY>

请注意,如果您希望将任务的剩余工作汇总到PR WIT,那么PR WIT应该在Microsoft.RequirementCategory

如果您想更新现有的团队项目,则必须使用witadmin.exe。使用exportprocessconfigimportprocessconfig进行流程配置。使用exportcategoriesimportcategories作为类别。

相关问题