This is a migrated thread and some comments may be shown as answers.

Mapping TeamPulse Username to AssignedTo Field in TFS

1 Answer 87 Views
TFS Integration
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Randall
Top achievements
Rank 1
Randall asked on 01 Apr 2012, 03:10 PM
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?

1 Answer, 1 is accepted

Sort by
0
Lora Borisova
Telerik team
answered on 02 Apr 2012, 02:26 PM
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
Tags
TFS Integration
Asked by
Randall
Top achievements
Rank 1
Answers by
Lora Borisova
Telerik team
Share this question
or