index > Team Foundation Server - Process Templates > Creating Area/Iteration Path Nodes

Creating Area/Iteration Path Nodes


We are developing an add-in that turns our MS Word documented requirements into Categorized Work Items in VSTS. However, while we can use the Object Model to create the Work Items, the Area and Iteration Node Paths do not seem accessible via the OM.

We are trying to be good people and do not really want to be editing the Database directly, so can you please advise if it is possible to create Area/Iteration Nodes using the TFS Object Model?

Many Thanks

Greg

Greg.Duffield
Yes, you must be able to access all of the properties of a work item with OM, just take a look to the collection of "Fields" (if I remember the correct name), where you can access all the extended fields of a work item, not only the base ones


Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile

I appreciate what you are saying and this is completley true for the Work Items, but I actually want to create Area and Iteration Nodes, and at present there is no way (that we can find) using the object Model to do this, we can do it using the Web Service though (as with just about everything else ;-))

Thanks

Greg

Greg.Duffield
Aps sorry I misunderstood the question, well for creating iteration and area nodes I haven't checked, but I suppouse they might be in the Team Foundation Server OM rather than in the WorkItems, but I'm just guessing


Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile

Here is some sample code for creating areas & iterations nodes:

TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(server);
m_css = (ICommonStructureService)tfs.GetService(typeof(ICommonStructureService));

// Get the area Uri.
ProjectInfo projectInfo = m_css.GetProjectFromName(project);
String areaUri = LimitUtil.GetCssStructure(m_css, projectInfo.Uri, LimitUtil.StructureType.Areas).Uri;

String node = m_css.CreateNode("Node" + i.ToString(), areaUri);

Brian Harry
reply 5

You can use google to search for other answers

 

More Articles

Customize MSF Process template
Add date field for attachments in control type 'AttachmentsContro...
Set up: Set Permissions Work Item
Trouble reusing a field name
Download a Process Template Programatically
TF30272: Template not found on the server
Can I change the Process template After finished creating a ...
Can a Work Item Type be disabled?
process template dependencies problem
Customizing iterations
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

MS Project and Publish & Refresh Pro…
why is 'Rank' a string type?
How i can changed task item Start Date a…
FileMapping.xml gets corrupt during temp…
Update documents on process guidance.
work items are not publishing from proje…
load testing query for 1.0 application
Override policy
Can an entire process template be import…
Question about importing
TF30272: Template not found on the server
Latest version MSF Agile Process Template
Add date field for attachments in contro…
Header Images
how can I change my process template?

Hot Articles

Setting SharePoint security in sub-folders
Latest version MSF Agile Process Template
Problems with glimport
conditional rule based visibility of for…
Can a Work Item Type be disabled?
load testing query for 1.0 application
Creation of query with required value of…
Hide the team project name screen during…
Header Images
how do i add more bug status's?
Purpose of Iterations
TF30272: Template not found on the server
Scenarios to use Triage Field for Work I…
Can you add portal and reporting later?
2 questions.. how do you rename a work i…

Recommend Articles

Can I change the Process template Afte…
How to creat an Unassigned user for the …
MSFWinBuildTool
What's the different effect if I select …
Stakeholder for requirement?
Limitation in MS Project ?
Setting SharePoint security in sub-folders
Another TF30177 Error: Team Project Crea…
AreaPath value in Field Conditions
Can I add a field to a work item after t…
uploading Agile templates in italian to …
WssTasks.xml
Modify CMMI process description
why is 'Rank' a string type?
Reports are not accessible from Team Fou…