Loïc Baumann's Blog

Team System and .Net stuffs

Browse by Tags

All Tags » WIT » Coding (RSS)
Modifying Work Item Type definition using the Object Model
I'm in the process of easing the installation of the Work Item Creator. To do that, I wanted to detect in runtime if a given Team Project doesn’t have its Work Item Types (WITs) supporting hierarchy and then asking the user to add them. It’s...
Getting Work Items from the Store
There're few things I want to share about the WorkItemStore::GetWorkItem() method. First, it may sound clear for everybody, but: WorkItem a = wis . GetWorkItem ( 10 ); WorkItem b = wis . GetWorkItem ( 10 ); The instance a and b won’t be the...
Simple way to create Work Item Hierarchy
Create a custom field in all your concerned Work Items named "ParentWI" for instance, of type integer. Now, say you want to link two Work Items, the method will looks like: public void LinkWorkItems ( WorkItem parent , WorkItem son ) { RelatedLink...