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

问题描述:

我复制了WIT“用户故事”,将其作为新的WIT并将其更名为“PR”。该工作项目还有“剩余工作”和“原始估计”。但是,当我输入时间,它不会在董事会计算。复制的WIT将不会计算Backlog bord中的剩余时间

另一方面,“Bug”get的计算恰到好处。我已经检查过这些字段,它们是相同的(Field Control,VSTS.Suling.RemaningWork,Type Double,可重新计算Measure,公式SUM等)

有什么提示吗?

要让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> 

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

如果你想更新你现有的团队项目,你将不得不使用witadmin.exe。进程配置使用exportprocessconfigimportprocessconfig。类别使用exportcategoriesimportcategories