TFS - 错误处理模板 - 新添加的状态不可用
TFS - Bugs Process Template - Newly added states not available
我下载了流程模板。
通过为其添加这些新状态和状态转换来更新错误处理模板。
新增状态
"Merged to UAT"
"Released to UAT"
"Merged to Trunk"
"Released to PROD"
<STATE value="New">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ResolvedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedBy">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedReason">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
<EMPTY/>
</FIELD>
</FIELDS>
</STATE>
<STATE value="Active">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ResolvedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedBy">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedReason">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY/>
</FIELD>
</FIELDS>
</STATE>
<STATE value="Resolved">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY/>
</FIELD>
</FIELDS>
</STATE>
<STATE value="Closed"/>
<STATE value="Merged to UAT"/>
<STATE value="Released to UAT"/>
<STATE value="Merged to Trunk"/>
<STATE value="Released to PROD"/>
而且我添加了新的状态转换
<TRANSITION from="Resolved" to="Merged to UAT">
<REASONS>
<DEFAULTREASON value="Merged to UAT"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to UAT" to="Released to UAT">
<REASONS>
<DEFAULTREASON value="Released to UAT"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to UAT" to="Closed">
<REASONS>
<DEFAULTREASON value="Not Releasing to Prod"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Released to UAT" to="Merged to Trunk">
<REASONS>
<DEFAULTREASON value="Merged to Trunk"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Released to UAT" to="Closed">
<REASONS>
<DEFAULTREASON value="Not releasing to PROD"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to Trunk" to="Closed">
<REASONS>
<DEFAULTREASON value="Not Releasing to Prod"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to Trunk" to="Released to PROD">
<REASONS>
<DEFAULTREASON value="Released to PROD"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Released to PROD" to="Closed">
<REASONS>
<DEFAULTREASON value="Approved in Prod"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
能够成功导入模板。
但即使添加了这些,我也没有在 Bug 上看到可用于 Transition 的状态。
我已经重新启动 Visual studio 并确保我断开并重新连接 TFS,认为这是一个缓存问题。
我发现了问题。我们无法更新现有项目的过程模板。
我在集合中创建了一个新项目,我看到了要关联的新过程模板。使用新构建的过程模板创建新项目后,所有状态都可用。
另一种选择如本 link 所述。 (**还没试过)
https://adamstephensen.com/2013/08/01/adding-a-testing-column-to-your-tfs-2012-task-board/
我下载了流程模板。
通过为其添加这些新状态和状态转换来更新错误处理模板。
新增状态
"Merged to UAT" "Released to UAT" "Merged to Trunk" "Released to PROD"
<STATE value="New">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ResolvedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedBy">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedReason">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
<EMPTY/>
</FIELD>
</FIELDS>
</STATE>
<STATE value="Active">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ResolvedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedBy">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ResolvedReason">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY/>
</FIELD>
</FIELDS>
</STATE>
<STATE value="Resolved">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY/>
</FIELD>
<FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY/>
</FIELD>
</FIELDS>
</STATE>
<STATE value="Closed"/>
<STATE value="Merged to UAT"/>
<STATE value="Released to UAT"/>
<STATE value="Merged to Trunk"/>
<STATE value="Released to PROD"/>
而且我添加了新的状态转换
<TRANSITION from="Resolved" to="Merged to UAT">
<REASONS>
<DEFAULTREASON value="Merged to UAT"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to UAT" to="Released to UAT">
<REASONS>
<DEFAULTREASON value="Released to UAT"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to UAT" to="Closed">
<REASONS>
<DEFAULTREASON value="Not Releasing to Prod"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Released to UAT" to="Merged to Trunk">
<REASONS>
<DEFAULTREASON value="Merged to Trunk"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Released to UAT" to="Closed">
<REASONS>
<DEFAULTREASON value="Not releasing to PROD"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to Trunk" to="Closed">
<REASONS>
<DEFAULTREASON value="Not Releasing to Prod"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Merged to Trunk" to="Released to PROD">
<REASONS>
<DEFAULTREASON value="Released to PROD"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
<TRANSITION from="Released to PROD" to="Closed">
<REASONS>
<DEFAULTREASON value="Approved in Prod"/>
</REASONS>
<FIELDS>
<FIELD refname="System.AssignedTo">
<COPY from="currentuser"/>
</FIELD>
</FIELDS>
</TRANSITION>
能够成功导入模板。
但即使添加了这些,我也没有在 Bug 上看到可用于 Transition 的状态。
我已经重新启动 Visual studio 并确保我断开并重新连接 TFS,认为这是一个缓存问题。
我发现了问题。我们无法更新现有项目的过程模板。
我在集合中创建了一个新项目,我看到了要关联的新过程模板。使用新构建的过程模板创建新项目后,所有状态都可用。
另一种选择如本 link 所述。 (**还没试过)
https://adamstephensen.com/2013/08/01/adding-a-testing-column-to-your-tfs-2012-task-board/