Mapping TeamPulse Username to AssignedTo Field in TFS

2 posts, 0 answers
  1. Randall
    Randall avatar
    1 posts
    Member since:
    Apr 2012

    Posted 01 Apr 2012 Link to this post

    I'm trying to map TeamPulse Username to AssignedTo Field in TFS. Reason being, our TFS server has our names like this "cprx_username". In TeamPulse it tries to sync "Full Name" to AssignedTo and returns an error: InvalidListValue. I have tried to do a value mapping with 

          <Values>
            <Value TeamPulseValue="<Full Name>" DestinationValue="<tfsUsername>" />
          </Values>

    However it gives me the error still, with out trying to change it. Can someone help?
  2. Lora Borisova
    Admin
    Lora Borisova avatar
    40 posts

    Posted 02 Apr 2012 Link to this post

    Hello Randall,

    Thank you for your interest in TeamPulse.

    In order to sync "assigned to" value for items where the name format is different in TeamPulse and TFS, you need to add additional value mapping as part of the Edit Sync Mappings xml file, which you can find in TeamPulse under Settings -> TFS Sync Information -> (expand) TFS Server Configuration.
    Sample value mapping is represented below:
    <EntityMappings>
    <EntityMapping TeamPulseEntityName="Story" DestinationEntityName="Work Item">
    <FieldMappings>
    <FieldMapping TeamPulseFieldName="AssignedTo" TeamPulseFieldType="string" DestinationFieldName="System.AssignedTo" DestinationFieldDisplayName="Assigned To" DestinationFieldType="string" ValueMappingName="AssignedToMapping" />
    </FieldMappings>
    </EntityMapping>
    <EntityMapping TeamPulseEntityName="Bug" DestinationEntityName="Bug">
    <FieldMappings>
    <FieldMapping TeamPulseFieldName="AssignedTo" TeamPulseFieldType="string" DestinationFieldName="System.AssignedTo" DestinationFieldDisplayName="Assigned To" DestinationFieldType="string" ValueMappingName="AssignedToMapping" />
    </FieldMappings>
    </EntityMapping>
    </EntityMappings>
    <ValueMappings>
    <ValueMapping Name="AssignedToMapping">
    <Values>
    <Value TeamPulseValue="Randall Clapper" DestinationValue="cprx_randall " />
    <Value TeamPulseValue="Test User1" DestinationValue=" cprx_test_user1" />
    <Value TeamPulseValue="Test User2" DestinationValue=" cprx_test_user2" />
    </Values>
    </ValueMapping>
    </ValueMappings>

    In order to resolve the issue you should enter in the whole Value Mappings element filled in with correct names of all the users that will be synced and they should be correctly represented in the format, respectively for TeamPulse and for TFS. Also please note that at each "assigned to" element for each workitem that you want to sync this value, should be added attribute as follows (it is part of the xml code sample above):

    ValueMappingName="AssignedToMapping"

    After this configuration is made, the sync of assigners should work just fine.
    If you need more information or any other help, please do not hesitate to contact us at any time.

    Kind regards,
    Lora Borisova
    the Telerik team
Back to Top