TFS 无法完成产品待办列表项,因为没有从 "Committed" 的操作 "Microsoft.VSTS.Action.CheckIn" 的转换

TFS Cannot complete Product Backlog Item because there is no transition from "Committed" with the action "Microsoft.VSTS.Action.CheckIn"

我们有一个本地 TFS 2018 Update 2 实例,在此工作流程中 运行 遇到问题:

我刚刚注意到单击“批准”后弹出黄色错误消息:

VS1640134: Cannot complete Product Backlog Item 10275 because there is no transition from 'Committed' with the action "Microsoft.VSTS.Actions.Checkin". Learn more

(1 more work item will not be completed)

我在该错误代码 VS1640134 上找不到任何内容,我们只是使用没有任何添加或自定义字段的常规敏捷 Scrum 工作项。

消息引用了这篇文章:https://docs.microsoft.com/en-us/vsts/work/customize/reference/automate-field-assignments-state-transition-reason?view=vsts

VSTS 推特支持将我指向这篇文章:https://docs.microsoft.com/en-us/vsts/work/work-items/guidance/scrum-process-workflow?toc=%2Fvsts%2Fwork%2Fwork-items%2Ftoc.json&bc=%2Fvsts%2Fwork%2Fbreadcrumb%2Ftoc.json&view=vsts#track-progress

但似乎都没有解释如何解决问题。有谁知道如何解决这个问题?

更新: 在忘记了这个问题之后,它又被推回了我的议程。我查看了现在标记为已接受的答案,并且该过程通常有效。我对默认项目进行了以下编辑:

项目积压项目XML:

        <TRANSITION from="New" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
          <ACTIONS>  
            <ACTION value="microsoft.vsts.actions.checkin"/>  
          </ACTIONS> 
        </TRANSITION>
        <TRANSITION from="Approved" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
          <ACTIONS>  
            <ACTION value="microsoft.vsts.actions.checkin"/>  
          </ACTIONS> 
        </TRANSITION>
        <TRANSITION from="Committed" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
          <ACTIONS>  
            <ACTION value="microsoft.vsts.actions.checkin"/>  
          </ACTIONS> 
        </TRANSITION>

错误 XML:

        <TRANSITION from="New" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
          <ACTIONS>  
            <ACTION value="microsoft.vsts.actions.checkin"/>  
          </ACTIONS> 
        </TRANSITION>
        <TRANSITION from="Approved" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
          <ACTIONS>  
            <ACTION value="microsoft.vsts.actions.checkin"/>  
          </ACTIONS> 
        </TRANSITION>
        <TRANSITION from="Committed" to="Done">
          <REASONS>
            <DEFAULTREASON value="Work finished" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
          <ACTIONS>  
            <ACTION value="microsoft.vsts.actions.checkin"/>  
          </ACTIONS> 
        </TRANSITION>

根据提供的 link,您需要导出 PBI 的 XML,并且在转换 "from Committed" 到另一个状态时您需要添加这些行:

 <ACTIONS>  
  <ACTION value="microsoft.vsts.actions.checkin"/>  
 </ACTIONS> 

例如:

 <TRANSITION from="Committed" to="Ready To Build">  
   <REASONS>
     ....
   </REASONS>
      <ACTIONS>  
      <ACTION value="microsoft.vsts.actions.checkin"/>  
      </ACTIONS>  
</TRANSITION>

然后您需要将 XML 文件导入回 TFS。

有关export/import的更多信息:Click Here