Yes you can use TFS WorkItem object model exposed through Microsoft.TeamFoundation.WorkItemTracking.Client.dll to create workitems programmatically. Following is a code snippet that shows how to create a workitemAdd Microsoft.TeamFoundation.WorkItemTracking.Client.dll and Microsoft.TeamFoundation.Client.dll as ReferencesTeamFoundationServer tfs = TeamFoundationServerFactory.GetServer('TFSATServer');store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));WorkItemType wiType = store.Projects0.WorkItemTypes1;WorkItem newWI = new WorkItem(wiType);newWI.Title = 'Title';newWI.State = 'Active';newWI.Fields'System.AssignedTo'.Value = 'User1';newWI.Save;Swamy. Yes you can use TFS WorkItem object model exposed through Microsoft.TeamFoundation.WorkItemTracking.Client.dll to create workitems programmatically. Following is a code snippet that shows how to create a workitemAdd Microsoft.TeamFoundation.WorkItemTracking.Client.dll and Microsoft.TeamFoundation.Client.dll as ReferencesTeamFoundationServer tfs = TeamFoundationServerFactory.GetServer('TFSATServer');store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));WorkItemType wiType = store.Projects0.WorkItemTypes1;WorkItem newWI = new WorkItem(wiType);newWI.Title = 'Title';newWI.State = 'Active';newWI.Fields'System.AssignedTo'.Value = 'User1';newWI.Save;Swamy.
One of the Team Foundation Server Process Template customisations I do frequently is changing a project to make use of a custom team field rather than the. From your project using WitAdmin.exe (usually found in C:Program Files. Export Work Item definitions write-Verbose 'Exporting PBI definition'.