无法在 TFS 2018 TF400522 中导入流程配置错误“工作项类别无效" [英] Unable to import process configuration in TFS 2018 TF400522 error “invalid work item category”
问题描述
由于 TF400522 错误无效的工作项类别",无法导入进程配置文件
以下元素包含错误:PortfolioBacklog(Zions.InitiativeCatego嗯).TF400522: 以下值不是有效的工作项类别:Zions.Init主动类别.您必须指定一个有效的类别.
创建了一个名为Initiative"的新工作项类型通过 VSTS TFS 插件成功导入 WIT工作项出现在 Web ui 上编辑敏捷模板‘category.xml’以包含新的倡议工作项类别
<CATEGORY name="Initiative Category" refname="Microsoft.InitiativeCategory"><DEFAULTWORKITEMTYPE name="Initiative"/></CATEGORY>
然后我在processconfiguration.xml文件中添加了主动类别
<PortfolioBacklogs><PortfolioBacklog category="Microsoft.InitiativeCategory" multipleName="Initiatives" singleName="Initiative" workItemCountLimit="1000"><States><State value="New" type="Proposed"/><State value="Active" type="InProgress"/><State value="Resolved" type="InProgress"/><State value="Closed" type="完成"/></States><Columns><Column refname="System.WorkItemType" width="100"/<Column refname="System.Title" width="400"/><Column refname="System.State" width="100"/<Column refname="Microsoft.VSTS.Scheduling.Effort" width="50"/><Column refname="Microsoft.VSTS.Common.BusinessValue" width="50"/><Column refname="Microsoft.VSTS.Common.ValueArea" width="100"/><Column refname="System.Tags" width="200"/></Columns><AddPanel><Fields><Field refname="System.Title"/></Fields></AddPanel></PortfolioBacklog>
Initiative 应该是Epic"的父级,所以我将其添加到 processonfig.xml 中的 Epic 条目
<PortfolioBacklog category="Microsoft.EpicCategory" multipleName="Epics" singleName="Epic" parent="Microsoft.InitiativeCategory" workItemCountLimit="1000"><States><State value="New" type="Proposed"/><State value="Active" type="InProgress"/><State value="Resolved" type="InProgress"/><State value="Closed"type="Complete"/></States><Columns><Column refname="System.WorkItemType" width="100"/><Column refname="System.Title" width="400"/><Column refname="System.State" width="100"/><Column refname="Microsoft.VSTS.Scheduling.Effort" width="50"/><Column refname="Microsoft.VSTS.Common.BusinessValue" width="50"/><Column refname="Microsoft.VSTS.Common.ValueArea" width="100"/><Column refname="System.Tags" width="200"/></Columns><AddPanel><Fields><Field refname="System.Title"/></Fields></AddPanel></PortfolioBacklog>
使用 witadmin 我运行了导入过程配置命令,
C:\Program Files\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtens离子\Microsoft\TeamFoundation\Team Explorer>witadmin.exe importprocessconfig/collection: 导出 Process Editor
或 witadmin
category.xml
并添加一个新类别,然后导入category.xml
文件<CATEGORY name="Initiative Category"refname="Microsoft.InitiativeCategory">
witadmin
导出 processconfiguration.xml
文件,编辑文件到 5.使用witadmin
processconfiguration.xml
文件witadmin importprocessconfig/collection:http://server:8080/tfs/defaultcollection/p:TFVC-Agile/f:C:\temp\ProcConf.xml
- 检查结果:
Unable to import process configuration file due to TF400522 error "invalid work item category"
The following element contains an error: PortfolioBacklog(Zions.InitiativeCatego ry). TF400522: The following value is not a valid work item category: Zions.Init iativeCategory. You must specify a valid category.
created a new work item type called "Initiative" Imported the WIT successfully via VSTS TFS plugin Work item appears on the web ui Edited the Agile Template‘category.xml’ to include the new Initiative work item category
<CATEGORY name="Initiative Category" refname="Microsoft.InitiativeCategory"><DEFAULTWORKITEMTYPE name="Initiative" /></CATEGORY>
Then I added the initiative category to the processconfiguration.xml file
<PortfolioBacklogs><PortfolioBacklog category="Microsoft.InitiativeCategory" pluralName="Initiatives" singularName="Initiative" workItemCountLimit="1000"><States><State value="New" type="Proposed" /><State value="Active" type="InProgress" /><State value="Resolved" type="InProgress" /><State value="Closed" type="Complete" /></States><Columns><Column refname="System.WorkItemType" width="100" /><Column refname="System.Title" width="400" /><Column refname="System.State" width="100" /><Column refname="Microsoft.VSTS.Scheduling.Effort" width="50" /><Column refname="Microsoft.VSTS.Common.BusinessValue" width="50" /><Column refname="Microsoft.VSTS.Common.ValueArea" width="100" /><Column refname="System.Tags" width="200" /></Columns><AddPanel><Fields><Field refname="System.Title" /></Fields></AddPanel></PortfolioBacklog>
Initiative should be a parent of ‘Epic’ so I added that to the Epic entry in processonfig.xml
<PortfolioBacklog category="Microsoft.EpicCategory" pluralName="Epics" singularName="Epic" parent="Microsoft.InitiativeCategory" workItemCountLimit="1000"><States><State value="New" type="Proposed" /><State value="Active" type="InProgress" /><State value="Resolved" type="InProgress" /><State value="Closed" type="Complete" /></States><Columns><Column refname="System.WorkItemType" width="100" /><Column refname="System.Title" width="400" /><Column refname="System.State" width="100" /><Column refname="Microsoft.VSTS.Scheduling.Effort" width="50" /><Column refname="Microsoft.VSTS.Common.BusinessValue" width="50" /><Column refname="Microsoft.VSTS.Common.ValueArea" width="100" /><Column refname="System.Tags" width="200" /></Columns><AddPanel><Fields><Field refname="System.Title" /></Fields></AddPanel></PortfolioBacklog>
using witadmin i ran the import process config command,
C:\Program Files\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtens ions\Microsoft\TeamFoundation\Team Explorer> witadmin.exe importprocessconfig /collection:https://tfs.testqa.zionsbank.com/InfoSec /p:"Template Test" /f:"C:\Users\z070187\Documents\TFSAgileTemplateCustom2\Agile\WorkItem Tracking\Process\ProcessConfiguration.xml"
Get the error,
The following element contains an error: PortfolioBacklog(Zions.InitiativeCatego ry). TF400522: The following value is not a valid work item category: Zions.InitiativeCategory. You must specify a valid category.
If I remove the category entries for ‘initiative’I can import successfully
From what I understand this category syntax should work fine.The category format from what I understand should meet formatting requirements. Any ideas would be helpful
<CATEGORIES> <CATEGORY name="category display name" refname="category reference name"> <DEFAULTWORKITEMTYPE name="work item type reference name" /> <WORKITEMTYPE name="work item type reference name" /> </CATEGORY> </CATEGORIES>
I tested on my side and everything works as expected.
- Export a WIT definition and modify it to be a new WIT called
Initiative
: - Import the new WIT with
Process Editor
orwitadmin
Export
category.xml
and add a new category, then import thecategory.xml
file<CATEGORY name="Initiative Category" refname="Microsoft.InitiativeCategory"><DEFAULTWORKITEMTYPE name="Initiative" /></CATEGORY>
- Export
processconfiguration.xml
file withwitadmin
, edit the file to Configure a backlog and setInitiative
as the parent of ‘Epic
’:
5. Import the processconfiguration.xml
file with witadmin
witadmin importprocessconfig /collection:http://server:8080/tfs/defaultcollection /p:TFVC-Agile /f:C:\temp\ProcConf.xml
- Check the results:
这篇关于无法在 TFS 2018 TF400522 中导入流程配置错误“工作项类别无效"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!