Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task".  
Author Message
Nasir_khan_persistent





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Scenario:

I am working on customization of Work Item Type "Task".

Scenario: I am customizing the CMMi process template to suit my Project requirements. To achieve this I changed the Work flow for the Work Item Type “Task”. Also I added few values to the “Discipline” field for WI Type “Task”.

When I am importing this Work Item using “witimport” it is working fine.

But when I am adding this WI task.xml to Process Template and uploaded the process template on the server. Now am creating Team Project based on this Process template it is giving me error below:

Event Description: TF26214: Cannot save the work item. Fields with errors: State,Discipline

Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException

Exception Message: TF26201: This work item has unsupported fields, or user does not have permissions.

For your reference I am also providing the XML file. Please let me know the what changes I need in XML. Also let me know whether there are any limitations in adding work flow for existing WI types.

XML file :

< xml version="1.0" encoding="utf-8" >

<witd:WITD application="Work item type editor" version="1.0" xmlns:witd=" http://www.hide-link.com/ ">

<WORKITEMTYPE name="Task">

<DESCRIPTION>Includes information to track the Implementation task through the PSPL processes project life cycle</DESCRIPTION>

<FIELDS>

<FIELD name="New % Allocation" refname="Persistent.VSTSLab.PercentageAllocation" type="String">

<HELPTEXT>Enter the Percentage of work needs to completed by User</HELPTEXT>

<DEFAULT from="value" value="100" />

</FIELD>

<FIELD name="Title" refname="System.Title" type="String" reportable="dimension">

<HELPTEXT>Short description of the Implementation task used to differentiate it in a list or report</HELPTEXT>

<REQUIRED />

</FIELD>

<FIELD name="State" refname="System.State" type="String" reportable="dimension">

<HELPTEXT>The workflow state of the task</HELPTEXT>

</FIELD>

<FIELD name="Actual Work" refname="Persistent.VSTSLab.ActualWorkinHours" type="Double" reportable="measure" formula="sum" />

<FIELD name="Rework" refname="Persistent.VSTSLab.Rework" type="String">

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Yes" />

<LISTITEM value="No" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="No" />

</FIELD>

<FIELD name="Task Priority" refname="Persistent.VSTSLab.Common.Priority" type="String">

<HELPTEXT>Priority to the business</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="High" />

<LISTITEM value="Medium" />

<LISTITEM value="Low" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="Low" />

</FIELD>

<FIELD name="Rev" refname="System.Rev" type="Integer" reportable="dimension" />

<FIELD name="Changed By" refname="System.ChangedBy" type="String" reportable="dimension">

<HELPTEXT>The person who last changed the task</HELPTEXT>

<VALIDUSER />

</FIELD>

<FIELD name="Issue" refname="Microsoft.VSTS.Common.Issue" type="String" reportable="dimension">

<HELPTEXT>Used to highlight the bug, e.g., to mark it as an issue.</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Yes" />

<LISTITEM value="No" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="No" />

</FIELD>

<FIELD name="State Change Date" refname="Microsoft.VSTS.Common.StateChangeDate" type="DateTime">

<HELPTEXT>The date and time of the last change to the state</HELPTEXT>

<WHENCHANGED field="System.State">

<SERVERDEFAULT from="clock" />

</WHENCHANGED>

<CANNOTLOSEVALUE />

</FIELD>

<FIELD name="Activated Date" refname="Microsoft.VSTS.Common.ActivatedDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date and time the task was activated</HELPTEXT>

</FIELD>

<FIELD name="Activated By" refname="Microsoft.VSTS.Common.ActivatedBy" type="String" reportable="dimension">

<HELPTEXT>The person who activated the task</HELPTEXT>

<VALIDUSER />

</FIELD>

<FIELD name="Resolved Date" refname="Microsoft.VSTS.Common.ResolvedDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date and time the bug was resolved</HELPTEXT>

<WHENNOTCHANGED field="System.State">

<READONLY />

</WHENNOTCHANGED>

</FIELD>

<FIELD name="Reason" refname="System.Reason" type="String" reportable="dimension">

<HELPTEXT>The reason why the task is in the current state</HELPTEXT>

</FIELD>

<FIELD name="Resolved By" refname="Microsoft.VSTS.Common.ResolvedBy" type="String" reportable="dimension">

<HELPTEXT>The person who resolved the bug</HELPTEXT>

<WHENNOTCHANGED field="System.State">

<READONLY />

</WHENNOTCHANGED>

<VALIDUSER />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="[project]\Project Administrators" />

<LISTITEM value="[project]\Contributors" />

</ALLOWEDVALUES>

</FIELD>

<FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension">

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="[project]\Project Administrators" />

<LISTITEM value="[project]\Contributors" />

</ALLOWEDVALUES>

</FIELD>

<FIELD name="Work Item Type" refname="System.WorkItemType" type="String" reportable="dimension" />

<FIELD name="Closed By" refname="Microsoft.VSTS.Common.ClosedBy" type="String" reportable="dimension">

<HELPTEXT>The person who closed the task</HELPTEXT>

<VALIDUSER />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="[project]\Project Administrators" />

<LISTITEM value="[project]\Contributors" />

</ALLOWEDVALUES>

</FIELD>

<FIELD name="Closed Date" refname="Microsoft.VSTS.Common.ClosedDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date and time the task was closed</HELPTEXT>

</FIELD>

<FIELD name="Rank" refname="Microsoft.VSTS.Common.Rank" type="String" reportable="dimension">

<HELPTEXT>Stack rank to prioritize work</HELPTEXT>

</FIELD>

<FIELD name="Triage" refname="Microsoft.VSTS.Common.Triage" type="String" reportable="dimension">

<HELPTEXT>Status of triaging the bug</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Pending" />

<LISTITEM value="More Info" />

<LISTITEM value="Info Recv" />

<LISTITEM value="Triaged" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="Pending" />

</FIELD>

<FIELD name="Test Name" refname="Microsoft.VSTS.Test.TestName" type="String" reportable="detail">

<HELPTEXT>The name of the test that found this bug</HELPTEXT>

</FIELD>

<FIELD name="Test Id" refname="Microsoft.VSTS.Test.TestId" type="String" reportable="detail">

<HELPTEXT>The Id of the test that found this bug</HELPTEXT>

</FIELD>

<FIELD name="Created Date" refname="System.CreatedDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date and time the task was created</HELPTEXT>

</FIELD>

<FIELD name="Created By" refname="System.CreatedBy" type="String" reportable="dimension">

<HELPTEXT>The person who created the task</HELPTEXT>

</FIELD>

<FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">

<HELPTEXT>The build in which the task was completed</HELPTEXT>

<SUGGESTEDVALUES expanditems="true">

<LISTITEM value="None" />

</SUGGESTEDVALUES>

</FIELD>

<FIELD name="Discipline" refname="Microsoft.VSTS.Common.Discipline" type="String" reportable="dimension">

<HELPTEXT>Discipline in which this task belong to. Field added from CQ.</HELPTEXT>

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Project Management" />

<LISTITEM value="Implementation" />

<LISTITEM value="Testing" />

<LISTITEM value="Business Modeling" />

<LISTITEM value="Design &amp; Analysis" />

<LISTITEM value="Requirements Gathering" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="Business Modeling" />

</FIELD>

<FIELD name="Remaining Work" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="Double" reportable="measure" formula="sum">

<HELPTEXT>An estimate of the number of hours remaining to complete the task</HELPTEXT>

</FIELD>

<FIELD name="Completed Work" refname="Microsoft.VSTS.Scheduling.CompletedWork" type="Double" reportable="measure" formula="sum">

<HELPTEXT>The number of hours that have been completed for this task</HELPTEXT>

</FIELD>

<FIELD name="Baseline Work" refname="Microsoft.VSTS.Scheduling.BaselineWork" type="Double" reportable="measure" formula="sum">

<HELPTEXT>The number of hours of work from the baseline plan</HELPTEXT>

</FIELD>

<FIELD name="Finish Date" refname="Microsoft.VSTS.Scheduling.FinishDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date to finish the task</HELPTEXT>

</FIELD>

<FIELD name="Task Hierarchy" refname="Microsoft.VSTS.Scheduling.TaskHierarchy" type="String" reportable="dimension">

<HELPTEXT>A string representing MS-Project context for the given task</HELPTEXT>

</FIELD>

<FIELD name="Start Date" refname="Microsoft.VSTS.Scheduling.StartDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date to start the task</HELPTEXT>

</FIELD>

<FIELD name="Exit Criteria" refname="Microsoft.VSTS.Common.ExitCriteria" type="String" reportable="dimension">

<HELPTEXT>Flag to determine if this scenario should be tracked as an exit criteria for the iteration</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Yes" />

<LISTITEM value="No" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="No" />

</FIELD>

<FIELD name="Severity" refname="Microsoft.VSTS.Common.Severity" type="String">

<HELPTEXT>How severe is the effect of this this risk on the project.</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Critical" />

<LISTITEM value="High" />

<LISTITEM value="Medium" />

<LISTITEM value="Low" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="Low" />

</FIELD>

<FIELD name="Test Path" refname="Microsoft.VSTS.Test.TestPath" type="String" reportable="detail">

<HELPTEXT>The full pathname of the test that found this bug</HELPTEXT>

</FIELD>

<FIELD name="Blocked" refname="Microsoft.VSTS.CMMI.Blocked" type="String" reportable="dimension">

<HELPTEXT>Is risk item blocked</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Yes" />

<LISTITEM value="No" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="No" />

</FIELD>

<FIELD name="Estimate" refname="Microsoft.VSTS.CMMI.Estimate" type="Double">

<HELPTEXT>The estimate for the amount of work (in hours). Should not exceeds 120 hours.</HELPTEXT>

</FIELD>

<FIELD name="Description" refname="System.Description" type="PlainText">

<HELPTEXT>The description of the work item</HELPTEXT>

</FIELD>

<FIELD name="Task Type" refname="Microsoft.VSTS.CMMI.TaskType" type="String" reportable="dimension">

<HELPTEXT>The task type</HELPTEXT>

<REQUIRED />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Analysis" />

<LISTITEM value="Requirement" />

<LISTITEM value="Testing" />

<LISTITEM value="Design" />

<LISTITEM value="Coding" />

<LISTITEM value="Build and Release" />

<LISTITEM value="Configuration Management" />

<LISTITEM value="Education and Training" />

<LISTITEM value="HR Activities" />

<LISTITEM value="Knowledge Transition" />

<LISTITEM value="Leave" />

<LISTITEM value="Organizational Activities" />

<LISTITEM value="Project Documentation" />

<LISTITEM value="Project Monitoring" />

<LISTITEM value="Project planning" />

<LISTITEM value="Project setup/closure" />

<LISTITEM value="Travel" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="Analysis" />

</FIELD>

<FIELD name="History" refname="System.History" type="History">

<HELPTEXT>Discussion thread and other historical information</HELPTEXT>

</FIELD>

<FIELD name="Requires Review" refname="Microsoft.VSTS.CMMI.RequiresReview" type="String">

<HELPTEXT>Does this task require review</HELPTEXT>

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Yes" />

<LISTITEM value="No" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="No" />

</FIELD>

<FIELD name="Requires Test" refname="Microsoft.VSTS.CMMI.RequiresTest" type="String">

<HELPTEXT>Does this task require test</HELPTEXT>

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="Yes" />

<LISTITEM value="No" />

</ALLOWEDVALUES>

<DEFAULT from="value" value="No" />

</FIELD>

<FIELD name="RelatedLinkCount" refname="System.RelatedLinkCount" type="Integer" />

<FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" reportable="dimension">

<HELPTEXT>The iteration of the product with which this risk is associated</HELPTEXT>

</FIELD>

<FIELD name="IterationID" refname="System.IterationId" type="Integer" />

<FIELD name="ExternalLinkCount" refname="System.ExternalLinkCount" type="Integer" />

<FIELD name="Team Project" refname="System.TeamProject" type="String" reportable="dimension" />

<FIELD name="HyperLinkCount" refname="System.HyperLinkCount" type="Integer" />

<FIELD name="AttachedFileCount" refname="System.AttachedFileCount" type="Integer" />

<FIELD name="Actual Start Dated" refname="MyRef.AStartDate" type="DateTime" reportable="dimension">

<HELPTEXT>Actual date on which user started working on the task.</HELPTEXT>

</FIELD>

<FIELD name="Node Name" refname="System.NodeName" type="String" />

<FIELD name="Version" refname="MyRef.Version" type="String">

<HELPTEXT>Version of the implementation task. It means belong to which Iteration and milestone.</HELPTEXT>

</FIELD>

<FIELD name="Actual End Dated" refname="MyRef.AEEndDate" type="DateTime" reportable="dimension">

<HELPTEXT>Actual date on which user finish working on the task.</HELPTEXT>

</FIELD>

<FIELD name="Sub Tasks" refname="MyRef.SubTasks" type="String">

<HELPTEXT>We can add the references number of sub tasks in this filed to establish parent child relationship among different tasks.</HELPTEXT>

</FIELD>

<FIELD name="Area Path" refname="System.AreaPath" type="TreePath" reportable="dimension">

<HELPTEXT>The area of the product with which this risk is associated</HELPTEXT>

</FIELD>

<FIELD name="Revised Date" refname="System.RevisedDate" type="DateTime" />

<FIELD name="Changed Date" refname="System.ChangedDate" type="DateTime" reportable="dimension">

<HELPTEXT>The date and time of the last change to the task</HELPTEXT>

</FIELD>

<FIELD name="ID" refname="System.Id" type="Integer" reportable="dimension">

<HELPTEXT>Human readable, auto-populated numeric Id</HELPTEXT>

</FIELD>

<FIELD name="AreaID" refname="System.AreaId" type="Integer" />

<FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" />

</FIELDS>

<WORKFLOW>

<STATES>

<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.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>

<FIELD refname="Microsoft.VSTS.Common.ResolvedDate">

<REQUIRED />

</FIELD>

<FIELD refname="Microsoft.VSTS.Common.ResolvedBy">

<REQUIRED />

</FIELD>

<FIELD refname="System.AssignedTo">

<REQUIRED />

</FIELD>

</FIELDS>

</STATE>

<STATE value="Closed">

<FIELDS>

<FIELD refname="Microsoft.VSTS.Common.ClosedBy">

<REQUIRED />

</FIELD>

<FIELD refname="Microsoft.VSTS.Common.ClosedDate">

<REQUIRED />

</FIELD>

<FIELD refname="System.AssignedTo">

<EMPTY />

</FIELD>

</FIELDS>

</STATE>

<STATE value="Assigned">

<FIELDS>

<FIELD refname="Microsoft.VSTS.Common.ResolvedDate">

<EMPTY />

</FIELD>

<FIELD refname="Microsoft.VSTS.Common.ResolvedBy">

<EMPTY />

</FIELD>

<FIELD refname="Microsoft.VSTS.Common.ClosedDate">

<EMPTY />

</FIELD>

<FIELD refname="Microsoft.VSTS.Common.ClosedBy">

<EMPTY />

</FIELD>

<FIELD refname="System.AssignedTo">

<REQUIRED />

</FIELD>

</FIELDS>

</STATE>

</STATES>

<TRANSITIONS>

<TRANSITION from="" to="Assigned">

<REASONS>

<DEFAULTREASON value="New" />

</REASONS>

</TRANSITION>

<TRANSITION from="Resolved" to="Assigned">

<REASONS>

<DEFAULTREASON value="Reject" />

</REASONS>

</TRANSITION>

<TRANSITION from="Resolved" to="Closed">

<REASONS>

<DEFAULTREASON value="Validate" />

</REASONS>

</TRANSITION>

<TRANSITION from="Assigned" to="Resolved">

<REASONS>

<DEFAULTREASON value="Resolve" />

</REASONS>

</TRANSITION>

</TRANSITIONS>

</WORKFLOW>

<FORM>

<Layout>

<Group>

<Column PercentWidth="70">

<Control FieldName="System.Title" Type="FieldControl" Label="&amp;Title:" LabelPosition="Left" />

</Column>

<Column PercentWidth="30">

<Control FieldName="Microsoft.VSTS.CMMI.TaskType" Type="FieldControl" Label="T&amp;ype:" LabelPosition="Left" />

</Column>

</Group>

<Group Label="Classification">

<Column PercentWidth="100">

<Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&amp;Milestone:" LabelPosition="Left" />

<Control FieldName="MyRef.Version" Type="FieldControl" Label="Version:" LabelPosition="Left" />

</Column>

</Group>

<Group Label="Status">

<Column PercentWidth="50">

<Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assi&amp;gned to:" LabelPosition="Left" />

<Control FieldName="Persistent.VSTSLab.Common.Priority" Type="FieldControl" Label="&amp;Priority:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Common.Severity" Type="FieldControl" Label="&amp;Severity:" LabelPosition="Left" />

<Control FieldName="System.CreatedBy" Type="FieldControl" Label="Submitted by:" LabelPosition="Left" />

<Control FieldName="System.CreatedDate" Type="FieldControl" Label="Submitted Date:" LabelPosition="Left" />

</Column>

<Column PercentWidth="50">

<Control FieldName="System.State" Type="FieldControl" Label="&amp;State:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Common.ResolvedBy" Type="FieldControl" Label="Resolved by:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Common.ResolvedDate" Type="DateTimeControl" Label="Resolve Date:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Common.ClosedBy" Type="FieldControl" Label="Closed by:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Common.ClosedDate" Type="DateTimeControl" Label="Close Date:" LabelPosition="Left" />

</Column>

</Group>

<TabGroup>

<Tab Label="Description">

<Control FieldName="System.Description" Type="HtmlFieldControl" Label="Des&amp;cription:" LabelPosition="Top" Dock="Fill" />

</Tab>

<Tab Label="History">

<Control FieldName="System.History" Type="WorkItemLogControl" Label="&amp;History:" LabelPosition="Top" Dock="Fill" />

</Tab>

<Tab Label="Links">

<Control Type="LinksControl" LabelPosition="Top" />

</Tab>

<Tab Label="Attachments">

<Control Type="AttachmentsControl" LabelPosition="Top" />

<Control FieldName="MyRef.SubTasks" Type="FieldControl" Label="Sub Tasks References:" LabelPosition="Left" />

</Tab>

<Tab Label="Details">

<Group>

<Column PercentWidth="100">

<Control FieldName="Persistent.VSTSLab.Rework" Type="FieldControl" Label="Rework:" LabelPosition="Left" />

</Column>

</Group>

<Group>

<Column PercentWidth="50">

<Group Label="Build">

<Column PercentWidth="100" />

</Group>

</Column>

<Column PercentWidth="50">

<Group Label="Schedule">

<Column PercentWidth="100">

<Control FieldName="Microsoft.VSTS.CMMI.Estimate" Type="FieldControl" Label="&amp;Estimate Work (Hrs):" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Scheduling.BaselineWork" Type="FieldControl" Label="Baseline &amp;work (hours):" LabelPosition="Left" ReadOnly="True" />

<Control FieldName="Microsoft.VSTS.Scheduling.StartDate" Type="DateTimeControl" Label="Start Dat&amp;e:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Scheduling.FinishDate" Type="DateTimeControl" Label="&amp;Finish Date:" LabelPosition="Left" />

<Control FieldName="MyRef.AStartDate" Type="DateTimeControl" Label="Actual Start Date:" LabelPosition="Left" />

<Control FieldName="MyRef.AEEndDate" Type="DateTimeControl" Label="Actual End Date:" LabelPosition="Left" />

<Control FieldName="Persistent.VSTSLab.PercentageAllocation" Type="FieldControl" Label="Percentage Allocation(in %):" LabelPosition="Left" />

<Control FieldName="Persistent.VSTSLab.ActualWorkinHours" Type="FieldControl" Label="Actual Work (Hours):" LabelPosition="Left" />

</Column>

</Group>

</Column>

</Group>

<Group Label="Test">

<Column PercentWidth="100">

<Control FieldName="Microsoft.VSTS.Test.TestName" Type="FieldControl" Label="&amp;Name:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Test.TestId" Type="FieldControl" Label="&amp;ID:" LabelPosition="Left" />

<Control FieldName="Microsoft.VSTS.Test.TestPath" Type="FieldControl" Label="&amp;Path:" LabelPosition="Left" />

</Column>

</Group>

</Tab>

</TabGroup>

</Layout>

</FORM>

</WORKITEMTYPE>

</witd:WITD>




Visual Studio Team System34  
 
 
Kathirvel





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Hi, i validate your code..and it is giving the following error...i will analyse the same get back to you shortly...

It is a best practice while importing the workitem into the TFS...you should validate the xml by using the following command line utility..

witimport /f filename /t tfs /p teamproject [/v] - /v will validate the XML without importing.....

------------------------------------------------------
System.ApplicationException: File: <drive>\bugs.xml

File: <drive>\bugs.xml

Could not deserialize

at TeamSystem.ProcessTemplateToolkit.Common.Utilities.LoadObject(String fileName, Object targetObject)

at TeamSystem.ProcessTemplateToolkit.BusinessObjects.WorkItemTracking.WorkItemType..ctor(WorkItemTypeDefinitionTask task, WITReference witr)

at TeamSystem.ProcessTemplateToolkit.BusinessObjects.WorkItemTracking.WorkItemTypeDefinitionTask.ImportFile(FileInfo file)

at TeamSystem.ProcessTemplateToolkit.TemplateEditor.ucWorkItems.ImportWorkItemType()
---------------------------
OK
---------------------------

Thanks, Kathir


 
 
Paul Hacker





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Is the Discipline the only values you modified Have you modified any other workitems that you are trying to upload If this is the only change that you made, try removing the &amp from the one value in the Discipline and see if that works. I have had issues with that before.

 
 
Nasir_khan_persistent





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Before Importing "Task.xml", I have done Work Item Type Validation, but still same problem exits.

Let me know whether we have any limitations on changing Work Flow of existing WI Type in CMMi or Agile process tempalte.

Thanks and Regards

Nasir



 
 
Nasir_khan_persistent





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

I treid it by removing the &amp from the Task XML for Discipline Field but still I am getting the same error.



 
 
Kathirvel





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

I am sorry for the late reply...i have gone through the complete analysis and i found the problem for the de-serializer error that i have mentioned in my last post...

The problem in the schema definitions... [Your definition - Old file - Task.xml]

<witd:WITD application="Work item type editor" version="1.0" xmlns:witd="http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef">

</witd:WITD>

I have removed the schemas reference will look like this..

<WITD application="Work item type editor" version="1.0">

</WITD>

This worked well....and i have test it out using the dummy process templates and attached the changed file with this post...please have a look ...

< xml version="1.0" encoding="utf-8" >
- <WITD application="Work item type editor" version="1.0">
- <WORKITEMTYPE name="Task">
<DESCRIPTION>Includes information to track the Implementation task through the PSPL processes project life cycle</DESCRIPTION>
- <FIELDS>
- <FIELD name="New % Allocation" refname="Persistent.VSTSLab.PercentageAllocation" type="String">
<HELPTEXT>Enter the Percentage of work needs to completed by User</HELPTEXT>
<DEFAULT from="value" value="100" />
</FIELD>
- <FIELD name="Title" refname="System.Title" type="String" reportable="dimension">
<HELPTEXT>Short description of the Implementation task used to differentiate it in a list or report</HELPTEXT>
<REQUIRED />
</FIELD>
- <FIELD name="State" refname="System.State" type="String" reportable="dimension">
<HELPTEXT>The workflow state of the task</HELPTEXT>
</FIELD>
<FIELD name="Actual Work" refname="Persistent.VSTSLab.ActualWorkinHours" type="Double" reportable="measure" formula="sum" />
- <FIELD name="Rework" refname="Persistent.VSTSLab.Rework" type="String">
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Yes" />
<LISTITEM value="No" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="No" />
</FIELD>
- <FIELD name="Task Priority" refname="Persistent.VSTSLab.Common.Priority" type="String">
<HELPTEXT>Priority to the business</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="High" />
<LISTITEM value="Medium" />
<LISTITEM value="Low" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="Low" />
</FIELD>
<FIELD name="Rev" refname="System.Rev" type="Integer" reportable="dimension" />
- <FIELD name="Changed By" refname="System.ChangedBy" type="String" reportable="dimension">
<HELPTEXT>The person who last changed the task</HELPTEXT>
<VALIDUSER />
</FIELD>
- <FIELD name="Issue" refname="Microsoft.VSTS.Common.Issue" type="String" reportable="dimension">
<HELPTEXT>Used to highlight the bug, e.g., to mark it as an issue.</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Yes" />
<LISTITEM value="No" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="No" />
</FIELD>
- <FIELD name="State Change Date" refname="Microsoft.VSTS.Common.StateChangeDate" type="DateTime">
<HELPTEXT>The date and time of the last change to the state</HELPTEXT>
- <WHENCHANGED field="System.State">
<SERVERDEFAULT from="clock" />
</WHENCHANGED>
<CANNOTLOSEVALUE />
</FIELD>
- <FIELD name="Activated Date" refname="Microsoft.VSTS.Common.ActivatedDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date and time the task was activated</HELPTEXT>
</FIELD>
- <FIELD name="Activated By" refname="Microsoft.VSTS.Common.ActivatedBy" type="String" reportable="dimension">
<HELPTEXT>The person who activated the task</HELPTEXT>
<VALIDUSER />
</FIELD>
- <FIELD name="Resolved Date" refname="Microsoft.VSTS.Common.ResolvedDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date and time the bug was resolved</HELPTEXT>
- <WHENNOTCHANGED field="System.State">
<READONLY />
</WHENNOTCHANGED>
</FIELD>
- <FIELD name="Reason" refname="System.Reason" type="String" reportable="dimension">
<HELPTEXT>The reason why the task is in the current state</HELPTEXT>
</FIELD>
- <FIELD name="Resolved By" refname="Microsoft.VSTS.Common.ResolvedBy" type="String" reportable="dimension">
<HELPTEXT>The person who resolved the bug</HELPTEXT>
- <WHENNOTCHANGED field="System.State">
<READONLY />
</WHENNOTCHANGED>
<VALIDUSER />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="[project]\Project Administrators" />
<LISTITEM value="[project]\Contributors" />
</ALLOWEDVALUES>
</FIELD>
- <FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension">
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="[project]\Project Administrators" />
<LISTITEM value="[project]\Contributors" />
</ALLOWEDVALUES>
</FIELD>
<FIELD name="Work Item Type" refname="System.WorkItemType" type="String" reportable="dimension" />
- <FIELD name="Closed By" refname="Microsoft.VSTS.Common.ClosedBy" type="String" reportable="dimension">
<HELPTEXT>The person who closed the task</HELPTEXT>
<VALIDUSER />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="[project]\Project Administrators" />
<LISTITEM value="[project]\Contributors" />
</ALLOWEDVALUES>
</FIELD>
- <FIELD name="Closed Date" refname="Microsoft.VSTS.Common.ClosedDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date and time the task was closed</HELPTEXT>
</FIELD>
- <FIELD name="Rank" refname="Microsoft.VSTS.Common.Rank" type="String" reportable="dimension">
<HELPTEXT>Stack rank to prioritize work</HELPTEXT>
</FIELD>
- <FIELD name="Triage" refname="Microsoft.VSTS.Common.Triage" type="String" reportable="dimension">
<HELPTEXT>Status of triaging the bug</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Pending" />
<LISTITEM value="More Info" />
<LISTITEM value="Info Recv" />
<LISTITEM value="Triaged" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="Pending" />
</FIELD>
- <FIELD name="Test Name" refname="Microsoft.VSTS.Test.TestName" type="String" reportable="detail">
<HELPTEXT>The name of the test that found this bug</HELPTEXT>
</FIELD>
- <FIELD name="Test Id" refname="Microsoft.VSTS.Test.TestId" type="String" reportable="detail">
<HELPTEXT>The Id of the test that found this bug</HELPTEXT>
</FIELD>
- <FIELD name="Created Date" refname="System.CreatedDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date and time the task was created</HELPTEXT>
</FIELD>
- <FIELD name="Created By" refname="System.CreatedBy" type="String" reportable="dimension">
<HELPTEXT>The person who created the task</HELPTEXT>
</FIELD>
- <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
<HELPTEXT>The build in which the task was completed</HELPTEXT>
- <SUGGESTEDVALUES expanditems="true">
<LISTITEM value="None" />
</SUGGESTEDVALUES>
</FIELD>
- <FIELD name="Discipline" refname="Microsoft.VSTS.Common.Discipline" type="String" reportable="dimension">
<HELPTEXT>Discipline in which this task belong to. Field added from CQ.</HELPTEXT>
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Project Management" />
<LISTITEM value="Implementation" />
<LISTITEM value="Testing" />
<LISTITEM value="Business Modeling" />
<LISTITEM value="Design & Analysis" />
<LISTITEM value="Requirements Gathering" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="Business Modeling" />
</FIELD>
- <FIELD name="Remaining Work" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="Double" reportable="measure" formula="sum">
<HELPTEXT>An estimate of the number of hours remaining to complete the task</HELPTEXT>
</FIELD>
- <FIELD name="Completed Work" refname="Microsoft.VSTS.Scheduling.CompletedWork" type="Double" reportable="measure" formula="sum">
<HELPTEXT>The number of hours that have been completed for this task</HELPTEXT>
</FIELD>
- <FIELD name="Baseline Work" refname="Microsoft.VSTS.Scheduling.BaselineWork" type="Double" reportable="measure" formula="sum">
<HELPTEXT>The number of hours of work from the baseline plan</HELPTEXT>
</FIELD>
- <FIELD name="Finish Date" refname="Microsoft.VSTS.Scheduling.FinishDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date to finish the task</HELPTEXT>
</FIELD>
- <FIELD name="Task Hierarchy" refname="Microsoft.VSTS.Scheduling.TaskHierarchy" type="String" reportable="dimension">
<HELPTEXT>A string representing MS-Project context for the given task</HELPTEXT>
</FIELD>
- <FIELD name="Start Date" refname="Microsoft.VSTS.Scheduling.StartDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date to start the task</HELPTEXT>
</FIELD>
- <FIELD name="Exit Criteria" refname="Microsoft.VSTS.Common.ExitCriteria" type="String" reportable="dimension">
<HELPTEXT>Flag to determine if this scenario should be tracked as an exit criteria for the iteration</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Yes" />
<LISTITEM value="No" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="No" />
</FIELD>
- <FIELD name="Severity" refname="Microsoft.VSTS.Common.Severity" type="String">
<HELPTEXT>How severe is the effect of this this risk on the project.</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Critical" />
<LISTITEM value="High" />
<LISTITEM value="Medium" />
<LISTITEM value="Low" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="Low" />
</FIELD>
- <FIELD name="Test Path" refname="Microsoft.VSTS.Test.TestPath" type="String" reportable="detail">
<HELPTEXT>The full pathname of the test that found this bug</HELPTEXT>
</FIELD>
- <FIELD name="Blocked" refname="Microsoft.VSTS.CMMI.Blocked" type="String" reportable="dimension">
<HELPTEXT>Is risk item blocked</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Yes" />
<LISTITEM value="No" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="No" />
</FIELD>
- <FIELD name="Estimate" refname="Microsoft.VSTS.CMMI.Estimate" type="Double">
<HELPTEXT>The estimate for the amount of work (in hours). Should not exceeds 120 hours.</HELPTEXT>
</FIELD>
- <FIELD name="Description" refname="System.Description" type="PlainText">
<HELPTEXT>The description of the work item</HELPTEXT>
</FIELD>
- <FIELD name="Task Type" refname="Microsoft.VSTS.CMMI.TaskType" type="String" reportable="dimension">
<HELPTEXT>The task type</HELPTEXT>
<REQUIRED />
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Analysis" />
<LISTITEM value="Requirement" />
<LISTITEM value="Testing" />
<LISTITEM value="Design" />
<LISTITEM value="Coding" />
<LISTITEM value="Build and Release" />
<LISTITEM value="Configuration Management" />
<LISTITEM value="Education and Training" />
<LISTITEM value="HR Activities" />
<LISTITEM value="Knowledge Transition" />
<LISTITEM value="Leave" />
<LISTITEM value="Organizational Activities" />
<LISTITEM value="Project Documentation" />
<LISTITEM value="Project Monitoring" />
<LISTITEM value="Project planning" />
<LISTITEM value="Project setup/closure" />
<LISTITEM value="Travel" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="Analysis" />
</FIELD>
- <FIELD name="History" refname="System.History" type="History">
<HELPTEXT>Discussion thread and other historical information</HELPTEXT>
</FIELD>
- <FIELD name="Requires Review" refname="Microsoft.VSTS.CMMI.RequiresReview" type="String">
<HELPTEXT>Does this task require review</HELPTEXT>
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Yes" />
<LISTITEM value="No" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="No" />
</FIELD>
- <FIELD name="Requires Test" refname="Microsoft.VSTS.CMMI.RequiresTest" type="String">
<HELPTEXT>Does this task require test</HELPTEXT>
- <ALLOWEDVALUES expanditems="true">
<LISTITEM value="Yes" />
<LISTITEM value="No" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="No" />
</FIELD>
<FIELD name="RelatedLinkCount" refname="System.RelatedLinkCount" type="Integer" />
- <FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" reportable="dimension">
<HELPTEXT>The iteration of the product with which this risk is associated</HELPTEXT>
</FIELD>
<FIELD name="IterationID" refname="System.IterationId" type="Integer" />
<FIELD name="ExternalLinkCount" refname="System.ExternalLinkCount" type="Integer" />
<FIELD name="Team Project" refname="System.TeamProject" type="String" reportable="dimension" />
<FIELD name="HyperLinkCount" refname="System.HyperLinkCount" type="Integer" />
<FIELD name="AttachedFileCount" refname="System.AttachedFileCount" type="Integer" />
- <FIELD name="Actual Start Dated" refname="MyRef.AStartDate" type="DateTime" reportable="dimension">
<HELPTEXT>Actual date on which user started working on the task.</HELPTEXT>
</FIELD>
<FIELD name="Node Name" refname="System.NodeName" type="String" />
- <FIELD name="Version" refname="MyRef.Version" type="String">
<HELPTEXT>Version of the implementation task. It means belong to which Iteration and milestone.</HELPTEXT>
</FIELD>
- <FIELD name="Actual End Dated" refname="MyRef.AEEndDate" type="DateTime" reportable="dimension">
<HELPTEXT>Actual date on which user finish working on the task.</HELPTEXT>
</FIELD>
- <FIELD name="Sub Tasks" refname="MyRef.SubTasks" type="String">
<HELPTEXT>We can add the references number of sub tasks in this filed to establish parent child relationship among different tasks.</HELPTEXT>
</FIELD>
- <FIELD name="Area Path" refname="System.AreaPath" type="TreePath" reportable="dimension">
<HELPTEXT>The area of the product with which this risk is associated</HELPTEXT>
</FIELD>
<FIELD name="Revised Date" refname="System.RevisedDate" type="DateTime" />
- <FIELD name="Changed Date" refname="System.ChangedDate" type="DateTime" reportable="dimension">
<HELPTEXT>The date and time of the last change to the task</HELPTEXT>
</FIELD>
- <FIELD name="ID" refname="System.Id" type="Integer" reportable="dimension">
<HELPTEXT>Human readable, auto-populated numeric Id</HELPTEXT>
</FIELD>
<FIELD name="AreaID" refname="System.AreaId" type="Integer" />
<FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" />
</FIELDS>
- <WORKFLOW>
- <STATES>
- <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.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>
- <FIELD refname="Microsoft.VSTS.Common.ResolvedDate">
<REQUIRED />
</FIELD>
- <FIELD refname="Microsoft.VSTS.Common.ResolvedBy">
<REQUIRED />
</FIELD>
- <FIELD refname="System.AssignedTo">
<REQUIRED />
</FIELD>
</FIELDS>
</STATE>
- <STATE value="Closed">
- <FIELDS>
- <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<REQUIRED />
</FIELD>
- <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<REQUIRED />
</FIELD>
- <FIELD refname="System.AssignedTo">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
- <STATE value="Assigned">
- <FIELDS>
- <FIELD refname="Microsoft.VSTS.Common.ResolvedDate">
<EMPTY />
</FIELD>
- <FIELD refname="Microsoft.VSTS.Common.ResolvedBy">
<EMPTY />
</FIELD>
- <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
- <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
<EMPTY />
</FIELD>
- <FIELD refname="System.AssignedTo">
<REQUIRED />
</FIELD>
</FIELDS>
</STATE>
</STATES>
- <TRANSITIONS>
- <TRANSITION from="" to="Assigned">
- <REASONS>
<DEFAULTREASON value="New" />
</REASONS>
</TRANSITION>
- <TRANSITION from="Resolved" to="Assigned">
- <REASONS>
<DEFAULTREASON value="Reject" />
</REASONS>
</TRANSITION>
- <TRANSITION from="Resolved" to="Closed">
- <REASONS>
<DEFAULTREASON value="Validate" />
</REASONS>
</TRANSITION>
- <TRANSITION from="Assigned" to="Resolved">
- <REASONS>
<DEFAULTREASON value="Resolve" />
</REASONS>
</TRANSITION>
</TRANSITIONS>
</WORKFLOW>
- <FORM>
- <Layout>
- <Group>
- <Column PercentWidth="70">
<Control FieldName="System.Title" Type="FieldControl" Label="&Title:" LabelPosition="Left" />
</Column>
- <Column PercentWidth="30">
<Control FieldName="Microsoft.VSTS.CMMI.TaskType" Type="FieldControl" Label="T&ype:" LabelPosition="Left" />
</Column>
</Group>
- <Group Label="Classification">
- <Column PercentWidth="100">
<Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&Milestone:" LabelPosition="Left" />
<Control FieldName="MyRef.Version" Type="FieldControl" Label="Version:" LabelPosition="Left" />
</Column>
</Group>
- <Group Label="Status">
- <Column PercentWidth="50">
<Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assi&gned to:" LabelPosition="Left" />
<Control FieldName="Persistent.VSTSLab.Common.Priority" Type="FieldControl" Label="&Priority:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Common.Severity" Type="FieldControl" Label="&Severity:" LabelPosition="Left" />
<Control FieldName="System.CreatedBy" Type="FieldControl" Label="Submitted by:" LabelPosition="Left" />
<Control FieldName="System.CreatedDate" Type="FieldControl" Label="Submitted Date:" LabelPosition="Left" />
</Column>
- <Column PercentWidth="50">
<Control FieldName="System.State" Type="FieldControl" Label="&State:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Common.ResolvedBy" Type="FieldControl" Label="Resolved by:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Common.ResolvedDate" Type="DateTimeControl" Label="Resolve Date:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Common.ClosedBy" Type="FieldControl" Label="Closed by:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Common.ClosedDate" Type="DateTimeControl" Label="Close Date:" LabelPosition="Left" />
</Column>
</Group>
- <TabGroup>
- <Tab Label="Description">
<Control FieldName="System.Description" Type="HtmlFieldControl" Label="Des&cription:" LabelPosition="Top" Dock="Fill" />
</Tab>
- <Tab Label="History">
<Control FieldName="System.History" Type="WorkItemLogControl" Label="&History:" LabelPosition="Top" Dock="Fill" />
</Tab>
- <Tab Label="Links">
<Control Type="LinksControl" LabelPosition="Top" />
</Tab>
- <Tab Label="Attachments">
<Control Type="AttachmentsControl" LabelPosition="Top" />
<Control FieldName="MyRef.SubTasks" Type="FieldControl" Label="Sub Tasks References:" LabelPosition="Left" />
</Tab>
- <Tab Label="Details">
- <Group>
- <Column PercentWidth="100">
<Control FieldName="Persistent.VSTSLab.Rework" Type="FieldControl" Label="Rework:" LabelPosition="Left" />
</Column>
</Group>
- <Group>
- <Column PercentWidth="50">
- <Group Label="Build">
<Column PercentWidth="100" />
</Group>
</Column>
- <Column PercentWidth="50">
- <Group Label="Schedule">
- <Column PercentWidth="100">
<Control FieldName="Microsoft.VSTS.CMMI.Estimate" Type="FieldControl" Label="&Estimate Work (Hrs):" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Scheduling.BaselineWork" Type="FieldControl" Label="Baseline &work (hours):" LabelPosition="Left" ReadOnly="True" />
<Control FieldName="Microsoft.VSTS.Scheduling.StartDate" Type="DateTimeControl" Label="Start Dat&e:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Scheduling.FinishDate" Type="DateTimeControl" Label="&Finish Date:" LabelPosition="Left" />
<Control FieldName="MyRef.AStartDate" Type="DateTimeControl" Label="Actual Start Date:" LabelPosition="Left" />
<Control FieldName="MyRef.AEEndDate" Type="DateTimeControl" Label="Actual End Date:" LabelPosition="Left" />
<Control FieldName="Persistent.VSTSLab.PercentageAllocation" Type="FieldControl" Label="Percentage Allocation(in %):" LabelPosition="Left" />
<Control FieldName="Persistent.VSTSLab.ActualWorkinHours" Type="FieldControl" Label="Actual Work (Hours):" LabelPosition="Left" />
</Column>
</Group>
</Column>
</Group>
- <Group Label="Test">
- <Column PercentWidth="100">
<Control FieldName="Microsoft.VSTS.Test.TestName" Type="FieldControl" Label="&Name:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Test.TestId" Type="FieldControl" Label="&ID:" LabelPosition="Left" />
<Control FieldName="Microsoft.VSTS.Test.TestPath" Type="FieldControl" Label="&Path:" LabelPosition="Left" />
</Column>
</Group>
</Tab>
</TabGroup>
</Layout>
</FORM>
</WORKITEMTYPE>
</WITD>

Thanks, Kathir


 
 
Nasir_khan_persistent





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Hi Kathir

Thanks for your kind support.

I tried it by using your posted XML file, but still it is giving me same error. Now the Task xml is de serialized but still the error is coming.

Event Description: TF26214: Cannot save the work item. Fields with errors: State, Discipline

I am using the RC version of TFS. Is this a problem due to RC version

Thanks and Regards
Nasir



 
 
Kathirvel





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

hi Nasir

If you don't mind......Why are you using still RC version of TFS.....after RC... RTM released....then now SP1 beta released ...soon we will getting the v2 of TFS..........i am not sure...RC version should not create any problem...still its like in the deep forest with your two eyes tied...so please check out...wht is ur need Is it able to upgrade RTM at any chance...

Also i found one more error like when your using ALLOWED VALUES like groups [project]\Administrators or Contributors, you should not use VALID USER.....you have used in two places...Resolved by and Closed by fields...delete the

<FIELD name="Resolved By" refname="Microsoft.VSTS.Common.ResolvedBy" type="String" reportable="dimension">

<HELPTEXT>The person who resolved the bug</HELPTEXT>

<WHENNOTCHANGED field="System.State">

<READONLY />

</WHENNOTCHANGED>

<VALIDUSER />

<ALLOWEDVALUES expanditems="true">

<LISTITEM value="[project]\Project Administrators" />

<LISTITEM value="[project]\Contributors" />

</ALLOWEDVALUES>

</FIELD>

If you can't..please update the workitem in different location and make your own process template using Process template editor http://www.gotdotnet.com/workspaces/workspace.aspx id=812a68af-5e74-48c6-9623-1a4469142a84 and save it some location and manually upload the new process template in the TFS...and try to create a new Team project ....

Thanks, Kathir


 
 
Kathirvel





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Hi Nasir,

Your problem get solved or not

Thanks,
Kathir


 
 
Nasir_khan_persistent





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Hi Kathir,

Thanks for your reply.

But still I am getting the same error. Please suggest me something to get out of this issue.

I am getting error only during New Team Project creation.

I have to use the RC version, because that is our project requirement.

Thanks and Regards

Nasir



 
 
Kathirvel





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

I am really sorry for this. I couldn't figure out since we have migrated to RTM and so what could be the problem...

Any way ...i will try the best. and keep you posted.

Thanks,
Kathir


 
 
Nasir_khan_persistent





PostPosted: Team Foundation Server - Process Templates, Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task". Top

Hello Kahir,

I have successfully resolve this Issue.

Here is the way I have gone about it:

I have specified some default work Items in "workitems.xml" file.

I have set the default Transition only for Project "Contributors".

But whenever we create a new Team Project only "TFSAdmin" will be added as "Project Administrator" for the Team Project.

Since Transistion is not for "Project Administrator", the error was comming because the TFS was unable to save the value for Work Item field "State".

I have change the "Tranisistion" for "Project Administrator".

I need to add some default "Contributor" (should be current user) for the Team Project, During new Team Project creation.

Do you have any idea about how should do this.

Thanks and Regards

Nasir