Work Items Areas and the WOrk Item OM  
Author Message
ewren





PostPosted: Team Foundation Server - Work Item Tracking, Work Items Areas and the WOrk Item OM Top

Hi,

Is it possibly to create/alter the area hierarchy for a project via the Work Item OM api, or any other api

Also is it possible to define custom attributes for Areas

thanks



Visual Studio Team System26  
 
 
Karthik Subramanyam





PostPosted: Team Foundation Server - Work Item Tracking, Work Items Areas and the WOrk Item OM Top

The area hierarchy is defined by the Integration Services (BIS). WorkItemTracking is a consumer of this hierarchy and thus provides no means of modifying the structure via its OM or web services.

To modify the structure, you can the following:

1. Via the UI. Right click on a project. Go to Settings->Areas and Iterations. This will provide you ways of renaming, deleting, creating etc.

2. Via the OM. You would have to use the ICommonStructureService interface to make changes via code. An instance of the ICommonStructureService can be retrieved from a TeamFoundationServer instance by calling GetService(typeof(ICommonStructureService));

I don't think its possible to create custom attribute for Areas. What scenario are you trying to enable with this

Thanks,
Karthik



 
 
ewren





PostPosted: Team Foundation Server - Work Item Tracking, Work Items Areas and the WOrk Item OM Top

Hi,

Thanks for your reply.

I am trying to build a tool to map our use cases into work items. The idea being that our requirements are captured as use cases and then get imported into VSTS to form the centrepoint of all project activities.

Our use cases are grouped in 'packages' which are like folders, packages can have a hierarchical structure.

I am trying to find how to represent these grouping mechanism in the work item database. Each use case will become a work item, but I trying to find a good way of representing the grouping and package hierarchy. I thought 'area' might be a good way, hence the need to create these via an api. It would be nice to be able to take all the attributes of one of our packages and add them to the area.

Does this sound like a reasonable approach . I am unsure as to how people are going to use the area hierarchy in practice, does this sound like an appropriate use

Thanks again


 
 
Brian Harry





PostPosted: Team Foundation Server - Work Item Tracking, Work Items Areas and the WOrk Item OM Top

Yes, that seems like a very reasonable approach.

Brian