Custom WorkItems Not Being Created

May 14, 2008 at 1:22 PM

We are setting up the TFS Connector between TFS 2005 and Project Server 2007. We have create a project with 7 tasks and have published the project. We then created a TFS project with our custom template (Work Item is Bug Item extended) and I updated the Web.Config to create the a Bug based on a Project Task. We created the association between the two without any issues, but the work items never get created. It looks like the connector is going to create them based on the event log but seems to process all the information and then decide there is nothing to create (see a truncated log history below). See how it grabs the assignments (should be 7 total but I cut some of the redundant information), looks like it creates serializable work items and then decides that there nothing to create??

Timestamp: 5/12/2008 5:44:58 PM
Message: 0 WorkItems have been detected from the Project Server ProjectDataSet with the Id of 64f1e74a-54f9-4a69-9253-38b23ef2b8d3

Timestamp: 5/12/2008 5:44:58 PM
Message: Getting custom fields for assignment b0dceef0-ffe0-4b63-a175-f79a6b5e3a36

Timestamp: 5/12/2008 5:44:58 PM
Message: Getting Task Row for assignment

Timestamp: 5/12/2008 5:44:58 PM
Message: Converting Assignment b0dceef0-ffe0-4b63-a175-f79a6b5e3a36 to SerializableWorkItem

Timestamp: 5/12/2008 5:44:58 PM
Message: Getting custom fields for assignment 55e01d5a-edfe-4c75-b242-ecff8b44b21f

Timestamp: 5/12/2008 5:44:58 PM
Message: Getting Task Row for assignment

Timestamp: 5/12/2008 5:44:58 PM
Message: Converting Assignment 55e01d5a-edfe-4c75-b242-ecff8b44b21f to SerializableWorkItem

Timestamp: 5/12/2008 5:44:57 PM
Message: Obtaining all lookup tables

Timestamp: 5/12/2008 5:44:57 PM
Message: Obtaining custom fields given the filter: <?xml version="1.0" encoding="utf-16"?>
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" filterTableName="CustomFields" xmlns="http://microsoft.com/ProjectServer/FilterSchema.xsd">
  <Fields>
    <Field tableName="CustomFields" fieldName="MD_PROP_UID" />
    <Field tableName="CustomFields" fieldName="MD_PROP_UID_SECONDARY" />
    <Field tableName="CustomFields" fieldName="MD_PROP_ID" />
    <Field tableName="CustomFields" fieldName="MD_PROP_ID_SECONDARY" />
    <Field tableName="CustomFields" fieldName="MD_PROP_NAME" />
    <Field tableName="CustomFields" fieldName="MD_ENT_TYPE_UID" />
    <Field tableName="CustomFields" fieldName="MD_PROP_IS_REQUIRED" />
    <Field tableName="CustomFields" fieldName="MD_PROP_IS_LEAF_NODE_ONLY" />
    <Field tableName="CustomFields" fieldName="MD_PROP_TYPE_ENUM" />
    <Field tableName="CustomFields" fieldName="MD_LOOKUP_TABLE_UID" />
    <Field tableName="CustomFields" fieldName="MD_PROP_DEFAULT_VALUE" />
  </Fields>
  <Criteria />
</Filter>

Timestamp: 5/12/2008 5:44:55 PM
Message: Project Association found between PS project 64f1e74a-54f9-4a69-9253-38b23ef2b8d3 and TFS project vstfs:///Classification/TeamProject/587fc5c4-c0fa-45f6-9a17-b746714a950d

Timestamp: 5/12/2008 5:44:55 PM
Message: Create new WorkItems from Project Server ProjectDataSet

Timestamp: 5/12/2008 5:44:55 PM
Message: Creating project association between TFS project vstfs:///Classification/TeamProject/587fc5c4-c0fa-45f6-9a17-b746714a950d and PS Project of 64f1e74a-54f9-4a69-9253-38b23ef2b8d3; syncing direction set to ToTFS

Any help would be greatly appreciated.

May 31, 2008 at 12:57 AM
Just wanted to post a follow up message that we did indeed get this working. You need to make sure that you have the AutoSync value set to Yes on the Assignment level not on the Task level (or at least both).