2014-09-12 61 views
1

我想知道如果在這裏任何人最近升級到TFS 2012.3和遭遇了同樣的問題?TFS 2012更新3升級 - 積壓不再顯示錯誤工作項目類型

以前我們在那裏使用TFS 2012.2,並定製了CommonProcessConfig和類別的積壓頁面顯示以下錯誤的更新後,但顯示的需求積壓的bug工作項目。

TF400917:當前配置不適用於此功能。在更正配置之前,此功能無法使用。 未將對象引用設置爲對象的實例。

我已經通過幾個網絡博客,服務器日誌和導出的配置文件(使用witadmin)試圖找到一個可能的原因,並迄今爲止空白。

Catergories XML

<?xml version="1.0" encoding="utf-8"?> 
<cat:CATEGORIES xmlns:cat="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/categories"> 
    <CATEGORY refname="Microsoft.BugCategory" name="Bug Category"> 
    <DEFAULTWORKITEMTYPE name="Bug" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.CodeReviewRequestCategory" name="Code Review Request Category"> 
    <DEFAULTWORKITEMTYPE name="Code Review Request" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.CodeReviewResponseCategory" name="Code Review Response Category"> 
    <DEFAULTWORKITEMTYPE name="Code Review Response" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.FeedbackRequestCategory" name="Feedback Request Category"> 
    <DEFAULTWORKITEMTYPE name="Feedback Request" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.FeedbackResponseCategory" name="Feedback Response Category"> 
    <DEFAULTWORKITEMTYPE name="Feedback Response" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.HiddenCategory" name="Hidden Types Category"> 
    <DEFAULTWORKITEMTYPE name="Code Review Request" /> 
    <WORKITEMTYPE name="Code Review Response" /> 
    <WORKITEMTYPE name="Feedback Request" /> 
    <WORKITEMTYPE name="Feedback Response" /> 
    <WORKITEMTYPE name="Shared Steps" /> 
    <WORKITEMTYPE name="Test Plan" /> 
    <WORKITEMTYPE name="Test Suite" /> 
    <WORKITEMTYPE name="Shared Parameter" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.RequirementCategory" name="Requirement Category"> 
    <DEFAULTWORKITEMTYPE name="Requirement" /> 
    <WORKITEMTYPE name="Bug" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.SharedStepCategory" name="Shared Step Category"> 
    <DEFAULTWORKITEMTYPE name="Shared Steps" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.TaskCategory" name="Task Category"> 
    <DEFAULTWORKITEMTYPE name="Task" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.TestCaseCategory" name="Test Case Category"> 
    <DEFAULTWORKITEMTYPE name="Test Case" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.TestPlanCategory" name="Test Plan Category"> 
    <DEFAULTWORKITEMTYPE name="Test Plan" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.TestSuiteCategory" name="Test Suite Category"> 
    <DEFAULTWORKITEMTYPE name="Test Suite" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.FeatureCategory" name="Feature"> 
    <DEFAULTWORKITEMTYPE name="Feature" /> 
    </CATEGORY> 
    <CATEGORY refname="Microsoft.SharedParameterCategory" name="Shared Parameter Category"> 
    <DEFAULTWORKITEMTYPE name="Shared Parameter" /> 
    </CATEGORY> 
</cat:CATEGORIES> 

項目流程配置

<?xml version="1.0" encoding="utf-8"?> 
<ProjectProcessConfiguration> 
    <BugWorkItems category="Microsoft.BugCategory" pluralName="Bugs" singularName="Bug"> 
    <States> 
     <State type="Proposed" value="Proposed" /> 
     <State type="InProgress" value="Active" /> 
     <State type="Complete" value="Closed" /> 
     <State type="Resolved" value="Resolved" /> 
    </States> 
    </BugWorkItems> 
    <FeedbackRequestWorkItems category="Microsoft.FeedbackRequestCategory" pluralName="Feedback Requests" singularName="Feedback Request"> 
    <States> 
     <State type="InProgress" value="Active" /> 
     <State type="Complete" value="Closed" /> 
    </States> 
    </FeedbackRequestWorkItems> 
    <FeedbackResponseWorkItems category="Microsoft.FeedbackResponseCategory" pluralName="Feedback Responses" singularName="Feedback Response"> 
    <States> 
     <State type="InProgress" value="Active" /> 
     <State type="Complete" value="Closed" /> 
    </States> 
    </FeedbackResponseWorkItems> 
    <PortfolioBacklogs> 
    <PortfolioBacklog category="Microsoft.FeatureCategory" pluralName="Features" singularName="Feature"> 
     <AddPanel> 
     <Fields> 
      <Field refname="System.Title" /> 
     </Fields> 
     </AddPanel> 
     <Columns> 
     <Column width="100" refname="System.WorkItemType" /> 
     <Column width="400" refname="System.Title" /> 
     <Column width="100" refname="System.State" /> 
     <Column width="50" refname="Microsoft.VSTS.Common.BusinessValue" /> 
     <Column width="200" refname="System.Tags" /> 
     </Columns> 
     <States> 
     <State type="Proposed" value="Proposed" /> 
     <State type="InProgress" value="Active" /> 
     <State type="InProgress" value="Resolved" /> 
     <State type="Complete" value="Closed" /> 
     </States> 
    </PortfolioBacklog> 
    </PortfolioBacklogs> 
    <RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Requirements" singularName="Requirement"> 
    <AddPanel> 
     <Fields> 
     <Field refname="System.Title" /> 
     <Field refname="Microsoft.VSTS.CMMI.RequirementType" /> 
     </Fields> 
    </AddPanel> 
    <Columns> 
     <Column width="400" refname="System.Title" /> 
     <Column width="100" refname="System.State" /> 
     <Column width="50" refname="Microsoft.VSTS.Scheduling.Size" /> 
     <Column width="150" refname="Microsoft.VSTS.CMMI.RequirementType" /> 
     <Column width="200" refname="System.IterationPath" /> 
     <Column width="200" refname="System.Tags" /> 
    </Columns> 
    <States> 
     <State type="Proposed" value="Proposed" /> 
     <State type="InProgress" value="Active" /> 
     <State type="InProgress" value="Resolved" /> 
     <State type="Complete" value="Closed" /> 
    </States> 
    </RequirementBacklog> 
    <TaskBacklog category="Microsoft.TaskCategory" parent="Microsoft.RequirementCategory" pluralName="Tasks" singularName="Task"> 
    <AddPanel> 
     <Fields> 
     <Field refname="System.Title" /> 
     </Fields> 
    </AddPanel> 
    <Columns> 
     <Column width="50" refname="Microsoft.VSTS.Scheduling.Size" /> 
     <Column width="400" refname="System.Title" /> 
     <Column width="100" refname="System.State" /> 
     <Column width="100" refname="System.AssignedTo" /> 
     <Column width="50" refname="Microsoft.VSTS.Scheduling.RemainingWork" /> 
    </Columns> 
    <States> 
     <State type="Proposed" value="Proposed" /> 
     <State type="InProgress" value="Active" /> 
     <State type="InProgress" value="Resolved" /> 
     <State type="Complete" value="Closed" /> 
    </States> 
    </TaskBacklog> 
    <TypeFields> 
    <TypeField refname="Microsoft.VSTS.Common.Discipline" type="Activity" /> 
    <TypeField refname="Microsoft.VSTS.Common.StackRank" type="Order" /> 
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationLaunchInstructions" type="ApplicationLaunchInstructions" /> 
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationStartInformation" type="ApplicationStartInformation" /> 
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationType" type="ApplicationType"> 
     <TypeFieldValues> 
     <TypeFieldValue type="ClientApp" value="Client application" /> 
     <TypeFieldValue type="RemoteMachine" value="Remote machine" /> 
     <TypeFieldValue type="WebApp" value="Web application" /> 
     </TypeFieldValues> 
    </TypeField> 
    <TypeField format="{0} h" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="RemainingWork" /> 
    <TypeField refname="Microsoft.VSTS.Scheduling.Size" type="Effort" /> 
    <TypeField refname="System.AreaPath" type="Team" /> 
    </TypeFields> 
    <Weekends> 
    <DayOfWeek>Sunday</DayOfWeek> 
    <DayOfWeek>Saturday</DayOfWeek> 
    </Weekends> 
    <WorkItemColors> 
    <WorkItemColor primary="FFCC293D" secondary="FFFAEAE5" name="Bug" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Change Request" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Code Review Request" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Code Review Response" /> 
    <WorkItemColor primary="FF773B93" secondary="FFEEE2F2" name="Feature" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Feedback Request" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Feedback Response" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Issue" /> 
    <WorkItemColor primary="FF009CCC" secondary="FFD6ECF2" name="Requirement" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Review" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Risk" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Shared Steps" /> 
    <WorkItemColor primary="FFF2CB1D" secondary="FFF6F5D2" name="Task" /> 
    <WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Test Case" /> 
    </WorkItemColors> 
</ProjectProcessConfiguration> 

任何幫助會在這一點上是極大的讚賞。

回答

0

我終於找到了答案,爲什麼我得到一個失敗的新系統。基本上在項目流程配置文件的要求積壓元件限定在所述面板部分A「RequirementType」,如下所示:

<RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Requirements" singularName="Requirement"> 
    <AddPanel> 
     <Fields> 
     <Field refname="System.Title" /> 
     <Field refname="Microsoft.VSTS.CMMI.RequirementType" /> 
     </Fields> 
    </AddPanel> 

這意味着,當錯誤WIT加入到的類別的規定XML從而將其預期的字段'需求類型'存在於錯誤WIT中。爲了解決這個問題,我有兩種可能性:

1)將'需求類型'添加到缺陷WIT 2)從面板中刪除'需求類型'。

我選擇選項2作爲選項1從用戶的角度來看沒有多大意義。這導致需求積壓看起來像這樣:

<RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Requirements" singularName="Requirement"> 
     <AddPanel> 
      <Fields> 
      <Field refname="System.Title" /> 
      </Fields> 
     </AddPanel> 

使用witadmin重新導入流程配置和解決問題和錯誤是,一旦需求積壓頁面上再次查看。 :)

相關問題