none
Project Server 2010 and TFS 2010 integration - display work item id, type and iteration in project plan RRS feed

  • Question

  • I'm not sure this is the correct forum, but I have not found a suitable one.

    We have an integration Project Server 2010 with TFS 2010.

    We can:

    • create work item in TFS and submit it into project plan
    • create task in project plan and submit it into TFS

    Synchronization of certain fields (like work item title, remaining work, etc.) can be adjusted using the field mapping file.

    But some fields (like work item ID, work item type and work item iteration) we can't submit into Project Server from TFS.

    I used this instruction (http://msdn.microsoft.com/en-us/library/gg412658(v=vs.100).aspx, section "Example: Displaying the Area and Iteration Paths in Project"), but it is not working.

    And i can't understand where i'm wrong.

    I use this field mapping file:

    <mappingFile>
      <persistables>
        <Microsoft.TeamFoundation.Sync.Mapping.Impls.FieldMapping>
          <field tfsName="System.Title" tfsMirrorName="Mirror.System.Title" displayTfsField="false" displayTfsMirror="false" onConflict="PSWin">
            <tfsToTarget>
              <target provider="ProjectServerStatusQueue" name="pjTaskName" />
            </tfsToTarget>
            <targetToTfs>
              <target provider="ProjectServerPublished" name="pjTaskName" />
            </targetToTfs>
          </field>
          <field tfsName="System.AssignedTo" tfsMirrorName="Mirror.System.AssignedTo" displayTfsField="false" displayTfsMirror="false" onConflict="PSWin">
            <tfsToTarget>
              <target provider="ProjectServerStatusQueue" name="pjTaskResourceNames" />
            </tfsToTarget>
            <targetToTfs>
              <target provider="ProjectServerPublished" name="pjTaskResourceNames" />
            </targetToTfs>
          </field>
          <field tfsName="Microsoft.VSTS.Scheduling.CompletedWork" tfsMirrorName="Mirror.Microsoft.VSTS.Scheduling.CompletedWork" displayTfsField="true" displayTfsMirror="true" onConflict="PSWin">
            <tfsToTarget>
              <target provider="ProjectServerStatusQueue" name="pjResourceActualWork" />
            </tfsToTarget>
            <targetToTfs>
              <target provider="ProjectServerPublished" name="pjTaskActualWork" />
            </targetToTfs>
          </field>
          <field tfsName="Microsoft.VSTS.Scheduling.RemainingWork" tfsMirrorName="Mirror.Microsoft.VSTS.Scheduling.RemainingWork" displayTfsField="true" displayTfsMirror="true" onConflict="PSWin">
            <tfsToTarget>
              <target provider="ProjectServerStatusQueue" name="pjResourceRemainingWork" />
            </tfsToTarget>
            <targetToTfs>
              <target provider="ProjectServerPublished" name="pjTaskRemainingWork" />
            </targetToTfs>
          </field>
          <field tfsName="Microsoft.VSTS.Scheduling.StartDate" tfsMirrorName="Mirror.Microsoft.VSTS.Scheduling.StartDate" displayTfsField="false" displayTfsMirror="false" onConflict="PSWin">
            <tfsToTarget>
              <target provider="ProjectServerStatusQueue" name="pjResourceStart" />
            </tfsToTarget>
            <targetToTfs>
              <target provider="ProjectServerPublished" name="pjTaskStart" />
            </targetToTfs>
          </field>
          <field tfsName="Microsoft.VSTS.Scheduling.FinishDate" tfsMirrorName="Mirror.Microsoft.VSTS.Scheduling.FinishDate" displayTfsField="false" displayTfsMirror="false" onConflict="PSWin">
            <tfsToTarget>
              <target provider="ProjectServerStatusQueue" name="pjResourceFinish" />
            </tfsToTarget>
            <targetToTfs>
              <target provider="ProjectServerPublished" name="pjTaskFinish" />
            </targetToTfs>
          </field>
        </Microsoft.TeamFoundation.Sync.Mapping.Impls.FieldMapping>
      </persistables>
    </mappingFile>


    Tuesday, November 6, 2012 12:53 PM

All replies

  • Hello Nikolay,

    Just to be sure, have you added the Enterprise custom fields to Project Server?


    - Dennis | Netherlands | Blog | Twitter

    Tuesday, November 6, 2012 3:32 PM
  • Hi Dennis!

    Yes.

    When i tried to sync "work item area path" and  "work item iteration" i added two enterprise custom field (as written in instruction) with type "text" and "task" level. 


    • Edited by Nikolay Ilin Wednesday, November 7, 2012 4:36 AM
    Wednesday, November 7, 2012 4:35 AM