Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need code in WCF to create link between work items in TFS 2010.

Please have a look at this block first to get an idea:
http://blogs.microsoft.co.il/blogs/shair/archive/2010/02/27/tfs-api-part-22-create-link-between-work-item-parent-child-etc.aspx[^]

Same as above I need code for create link between work items.

1. I have FPS work items separately in TFS (Without linking to BUC)
2. I have BUC work items separately in TFS (Without linking to FPS).
3. I am also going to create two tables in SQL , one for FPS and another one for BUC
4. FPS table fileds are - ID, Title
5. BUC table fields are - ID, title and Comments
6. FPS and BUC table can have more than 20000 records !!!
7. Then I can write code as follows using C#

//Open TFS server
Open and Read SQL tables FPS, BUC
Read first record in FPS , BUC table
Until end of SQL _FPS, BUC table
{
Int A = Find work item in TFS
Where work item. Identifier =SQL_table_FPS.ID;

Int B= Find work item in TFS
Where work item. Identifier= SQL_table_BUC.ID

Create link between A and B ;   link type= satisfies ;  Link comments= SQL_Table_BUC.comments;

Read next record on SQl_table_ FPS, BUC
}
Save all in TFS
End


Can anybody help out on this?
Posted
Updated 29-Sep-10 20:48pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900