Dela via


Specifying the Work Item Types That Can Be Synchronized

To support synchronization of data between an enterprise project plan and a team project, you must specify the types of work items that you want to participate in synchronization. You can define the types when you associate a project plan to a team project, and you can add or remove types later.

Note

All types of work items that are mapped for a team project are available to participate in data synchronization with all enterprise project plans that you have currently mapped to that team project or that you may map later.

Before you can manage the types of work items that participate in synchronization, you must have configured the integration of the two server products, and you must have mapped an enterprise project plan with the team project. For more information, see Configuring the Integration of Team Foundation Server and Project Server.

In this topic

  • List the Types of Work Items That Are Configured to Participate in Data Synchronization

  • Specify the Types of Work Items That Can Participate in Data Synchronization

  • Remove Types of Work Items From Data Synchronization

Required Permissions

To perform these procedures, your Administer Project Server integration permission must be set to Allow for a team project collection. Also, the service account for Visual Studio Team Foundation Server must be granted the necessary permissions to interact with the instances of PWA that will participate in data synchronization. For more information, see Assigning Permissions to Support Integration of Project Server and Team Foundation Server.

List the Types of Work Items That Are Configured to Participate in Data Synchronization

By using the following command, you can determine which types for a team project are already mapped and available to use with an enterprise project plan.

To list types of work items that are mapped for a team project

  1. On a computer that is running Team Explorer and Service Pack 1 for Visual Studio 2010, open a Command Prompt window, and change to the directory that contains the TFSAdmin tool.

    By default, the tool is located in Drive:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE. For 64-bit machines, the tool is in Drive:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE.

  2. At a command prompt, type the following command, and then press ENTER.

    TfsAdmin ProjectServer /GetMappedWorkItemTypes /collection:tpcUrl /teamProject: TeamProjectName
    

    Replace tpcUrl with the URL of the project collection and TeamProjectName with the name of the team project.

    The following message appears:

    The following types of work items are configured for synchronization:

    List of Work Item Types

Back to top

Specify the Types of Work Items that Can Participate in Data Synchronization

You can configure one or more types of work items for a team project to participate in data synchronization with tasks in project plans. The project plans may be currently mapped to the team project, or you can configure them later to synchronize data with the team project.

To map types of work items for a team project

  • At a command prompt, type the following command, and then press ENTER.

    TfsAdmin ProjectServer /MapWorkItemTypes /collection:tpcUrl /teamProject:TeamProjectName /workItemTypes:ListOfWorkItemTypes 
    

    Replace tpcUrl with the URL of the team project collection and TeamProjectName with the name of the team project. Replace ListOfWorkItemTypes with the names of the types of work items that you want to participate in data synchronization. For example, you can specify the following types of work items to support an agile process as “User Story,Task” or “User Story”,Task. Do not include a space after the comma.

    You can specify the optional /skipUIChanges flag to indicate that no modifications should be made to the Project Server tab for the work item forms of the types that you specify.

    Important

    You should include the /skipUIChanges flag only if a message indicates an error occurred when the system tried to add a Project Server tab. If this message appears, you will need to add the Project Server tab to the work item type definition manually. For more information, see Project Server Fields Added to Support Data Synchronization.

    The following messages appear:

    Configuring synchronization for the following work item types for team project TeamProjectName: List of Work Item Types.

    You have successfully configured the following work item types for team project TeamProjectName: List of Work Item Types.

If you have added a type and did not specify the /skipUIChanges flag, you can verify that the type has been modified by refreshing the team project in Team Explorer and then opening a work item of the type that you added. The Project Server tab should appear in the work item form.

Back to top

Remove a Work Item Type from Participating in Data Synchronization

Before you can remove a type of work item from participating in data synchronization, you should remove the links that bind the work items of that type to tasks that are defined in an enterprise project plan. As an alternative, you can use the /force flag to force the removal of these links and then remove the type.

To unmap a work item type from a team project

  • At a command prompt, type the following command, and then press ENTER.

    TfsAdmin ProjectServer /UnmapWorkItemTypes /collection:tpcUrl /teamProject:TeamProjectName /workItemTypes:ListOfWorkItemTypes 
    

    Replace tpcUrl with the URL of the team project collection, TeamProjectName with the name of the team project, and ListOfWorkItemTypes with the name or names of the types of work items to unmap.

    You can specify the optional /force flag to remove links that bind work items to Project tasks. By using this option, you can remove types of work item from participating in data synchronization, even if work items of that type are currently being synchronized.

    The following messages appear:

    Removing the following work item types from participating in synchronization of data for team project TeamProjectName : List of Work Item Types**.**

    The following work item types have been successfully removed from participating in synchronization for team project TeamProjectName**:** List of Work Item Types**.**

    You can verify whether the type has been removed by refreshing the team project in Team Explorer and then opening a work item of the type that you removed. The Project Server tab should be removed from the work item form.

    Back to top

See Also

Tasks

Configuring the Integration of Team Foundation Server and Project Server

Reference

Managing the Types of Work Items Available for Synchronization

Managing Mappings Between an Enterprise Project and a Team Project

Concepts

Administering the Integration of Team Foundation Server and Project Server