By default, After you created a project in Microsoft Team Foundation Server 2012, “Requirement Categor” only contains “User Story” as its member, then when you attempt to “Add existing requirements to a test plan”, only the “User Story” workitem will be acceptable.
In most case, when there is Change Request issued to the team, QA will need to have test case associated with it as well, which expect to add Change Request as requirement and can be added to a test plan.
We can achieve this by the following steps(need to obtain TFS administration permission first):
- Export Work Item Type Categories to a xml file:
run the following command form “Developer Command Prompt for VS2012”:
c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE>witadmin exportcategories /collection:http://TFSServer:8080/tfs/yourcollection /p:myproject /f:myproject-original.xml
- Modify the xml file and add Change Request as member of Requirement Category, which should like this:
<CATEGORY name="Requirement Category" refname="Microsoft.RequirementCategory">
<DEFAULTWORKITEMTYPE name="User Story"/>
<WORKITEMTYPE name="Change Request"/>
and save the modified xml as “myproject-modified.xml”
- Import the modified Work Item Type Categories xml file back to the project:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE>witadmin importcategories /collection:http://TFSServer:8080/tfs/yourcollection /p:myproject /f:myproject-modified.xml
Restart your Test Manager 2012, you should be able to add Change Request to a test plan now
Reference: Customize the Categories for Work Item Types [witadmin]