Process Template Work Items Not Created in Project Server 2007

Mar 17, 2008 at 3:34 PM
Hi,

I had created a team project in TFS2008 using the standard Agile process template, and a project in PS2007 with a few tasks. After doing a association with selection of both auto-create checkboxes, I found that the assignments in PS2007 were created as work items in TFS2008. On the other hand, the process template workitems were not created as tasks/assignments in PS2007. I tried to create a new work item subsequently and was able to send to PS2007 as a added task, which meant there wasn't a problem with permission in PS2007. The event log did not show any errors either.

Is it normal that the work items in the process template are not created as tasks in PS2007 during association?

Anyone pls help.

Ken
Mar 19, 2008 at 4:53 PM
Hi,

Could anyone pls enlighten me?

Thanks.

Ken
Coordinator
Mar 20, 2008 at 9:17 AM
which workitems? There is some filtering logic that occurs within the Connector -- existing workitems that do not have an association will not be put in the pending queue to go to project server. Are you saying the workitems were in the pending queue and you approved them or did they not even show up in the queue? I am a little confused as to youer usage scenario.

Thanks,
Lenny
Mar 20, 2008 at 5:07 PM
Hi Lenny,

I'm referring to the 15 work items that come with the initial creation of a team project using the MSF for Agile Software Development - v4.2 process template. I thought by selecting the "Auto-create assignments from current WorkItems" checkbox during project association, these 15 items will be created as tasks and assignments within the Project Server project. It would also set the custom field "AutoSync to External System" to "Yes" for all new assignments and also create an association between the new Project Server assignments and the WorkItems. However for my case, they are not. Only the assignments from PS2007 are auto-created as work items and auto-associated with TFS team project.

Hope this clarify my question and I'd appreciate your early reply.

Thank you.
Coordinator
Mar 20, 2008 at 6:34 PM
you are correct; selecting auto-create assignments should definitely create the assignments for you and should be visible in the Task Updates section in Project Web Access. it would also set the AutoSync field to yes for those assignments (not for all new ones -- that custom field is a boolean which Project Server always defaults to false :-( ).

Are there any events in the event log when you try to auto-create assignments? Could this be related to the other thread you posted?
Mar 21, 2008 at 4:57 AM
Yes, they are related. In the another thread, I've mentioned that I had problems doing project association with the "MSF Agile For PS Connector - v4.2" process template. Then I did the inclusion of templateName in the "MSF for Agile Software Development - v4.2" process template and was able to complete the project association, though the process template work items were not created as "Task Update" in the PWA for the administrator. A point to note is that when I created a new work item in the TFS project AFTER project assoication, a Task Update is visible, the same is for an update to the completion hours for any other work items. So the "Auto-create assignments from current WorkItems" is working in a way.

Back to the project assoication for the "MSF for Agile Software Development - v4.2" process template: There weren't any notable errors or warnings created (suprisingly nothing on the creation of assignments at the PS2007), although plenty of info events were as follows (the xml for creation of work item was removed due to its length):

Timestamp: 3/21/2008 2:40:21 AM
Message: Creating project association between TFS project vstfs:///Classification/TeamProject/eec778fa-a01e-4d73-ac5c-8dbcb5d5e26b and PS Project of e43cc32c-f37f-456c-82b8-043d0ebfce20; syncing direction set to Bidirectional
Timestamp: 3/21/2008 2:40:23 AM
Message: Create new WorkItems from Project Server ProjectDataSet
Timestamp: 3/21/2008 2:40:23 AM
Message: Project Association found between PS project e43cc32c-f37f-456c-82b8-043d0ebfce20 and TFS project vstfs:///Classification/TeamProject/eec778fa-a01e-4d73-ac5c-8dbcb5d5e26b
Timestamp: 3/21/2008 2:40:24 AM
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="MDPROPUID" />
<Field tableName="CustomFields" fieldName="MDPROPUID_SECONDARY" />
<Field tableName="CustomFields" fieldName="MDPROPID" />
<Field tableName="CustomFields" fieldName="MDPROPID_SECONDARY" />
<Field tableName="CustomFields" fieldName="MDPROPNAME" />
<Field tableName="CustomFields" fieldName="MDENTTYPE_UID" />
<Field tableName="CustomFields" fieldName="MDPROPIS_REQUIRED" />
<Field tableName="CustomFields" fieldName="MDPROPISLEAFNODE_ONLY" />
<Field tableName="CustomFields" fieldName="MDPROPTYPE_ENUM" />
<Field tableName="CustomFields" fieldName="MDLOOKUPTABLE_UID" />
<Field tableName="CustomFields" fieldName="MDPROPDEFAULT_VALUE" />
</Fields>
<Criteria />
</Filter>
Timestamp: 3/21/2008 2:40:24 AM
Message: Obtaining all lookup tables
Timestamp: 3/21/2008 2:40:25 AM
Message: Converting Assignment f87e0d3c-863b-4aed-b2d0-20f14c5fd157 to SerializableWorkItem
Timestamp: 3/21/2008 2:40:25 AM
Message: Getting Task Row for assignment
Timestamp: 3/21/2008 2:40:25 AM
Message: Getting custom fields for assignment f87e0d3c-863b-4aed-b2d0-20f14c5fd157
Timestamp: 3/21/2008 2:40:25 AM
Message: Getting WorkItemType mapping for Task
Timestamp: 3/21/2008 2:40:25 AM
Message: WorkItem Type mapping indicates a new WorkItem of Task should be created for the assignment with the id of f87e0d3c-863b-4aed-b2d0-20f14c5fd157
Timestamp: 3/21/2008 2:40:25 AM
Message: Getting Workitem Id
Timestamp: 3/21/2008 2:40:25 AM
Message: Creating Serializable WorkItem
Timestamp: 3/21/2008 2:40:25 AM
Message: Mapping task information
Timestamp: 3/21/2008 2:40:25 AM
Message: Mapping Assignment Custom Fields information
Timestamp: 3/21/2008 2:40:25 AM
Message: Mapping Assignment information
Timestamp: 3/21/2008 2:40:26 AM
Message: Logging into Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:26 AM
Message: Authenticating against Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:26 AM
Message: Retrieving display name for VSTSDEMO\Sam
Timestamp: 3/21/2008 2:40:26 AM
Message: Retrieving Sid for VSTSDEMO\Sam using the GroupSecurityService
Timestamp: 3/21/2008 2:40:26 AM
Message: WorkItem has changed -- adding to list of WorkItems
Timestamp: 3/21/2008 2:40:26 AM
Message: 1 WorkItems have been detected from the Project Server ProjectDataSet with the Id of e43cc32c-f37f-456c-82b8-043d0ebfce20
Timestamp: 3/21/2008 2:40:26 AM
Message: Logging into Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:26 AM
Message: Authenticating against Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:26 AM
Message: Logging into Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:26 AM
Message: Authenticating against Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:26 AM
Message: Getting reference names for IntegerFields for WorkItem with Id of -1
Timestamp: 3/21/2008 2:40:26 AM
Message: Getting reference names for StringFields for WorkItem with Id of -1
Timestamp: 3/21/2008 2:40:29 AM
Message: Initializing new WorkItem for project vstfs:///Classification/TeamProject/eec778fa-a01e-4d73-ac5c-8dbcb5d5e26b of type Task
Timestamp: 3/21/2008 2:40:29 AM
Message: Getting WorkItemTypes for the project vstfs:///Classification/TeamProject/eec778fa-a01e-4d73-ac5c-8dbcb5d5e26b
Timestamp: 3/21/2008 2:40:29 AM
Message: Getting the project Test Project3
Timestamp: 3/21/2008 2:40:29 AM
Message: Creating new WorkItem for project vstfs:///Classification/TeamProject/eec778fa-a01e-4d73-ac5c-8dbcb5d5e26b of type Task
Timestamp: 3/21/2008 2:40:29 AM
Message: Deserializing the WorkItem with the title Task1
Timestamp: 3/21/2008 2:40:31 AM
Message: eventXml:

.....

tfsIdentity:

<TeamFoundationServer url="http://VSTSDEMO:8080" />

Timestamp: 3/21/2008 2:40:31 AM
Message: workItem Id:498
Timestamp: 3/21/2008 2:40:31 AM
Message: TFS SERVER :http://VSTSDEMO:8080
Timestamp: 3/21/2008 2:40:31 AM
Message: serviceIdentity:VSTSDEMO\wssadmin
Timestamp: 3/21/2008 2:40:31 AM
Message: work item changed SID:S-1-5-21-3552358361-1775366241-1622893531-1019
Timestamp: 3/21/2008 2:40:31 AM
Message: This service was the last to change the WorkItem; therefore, change will be ignored
Timestamp: 3/21/2008 2:40:38 AM
Message: Logging into Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:38 AM
Message: Authenticating against Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:38 AM
Message: Logging into Team Foundation Server with Uri of http://vstsdemo:8080
Timestamp: 3/21/2008 2:40:38 AM
Message: Authenticating against Team Foundation Server with Uri of http://vstsdemo:8080
Coordinator
Mar 21, 2008 at 1:49 PM
Right. I think I was confused with what you were asking. It will set the autosync field to yes for new assignments created from work items using the Connector -- it won't automatically set them for new assignments that you just create in PS without having it come from the Connector though -- those will default to no. The Connector sets the autosync field to yes when it recognizes or creates an association between an assignment and a workitem.

So now I am trying to understand what is happening here. It sounds like the Connector ASgile template wasn't working for you and now it is. Is that correct? I am getting a little confused by this and want to ensure that it is working for you as intended. Please email me directly and we can take this offline so I can better assist you,