VSTS Create Area Path Using WorkItemClassificationNode

I am using the VSTS.NET client libraries and I am trying to create a path to the scope. I already have one WorkItemTrackingHttpClient. On this client, I can create the path to the area using the method CreateOrUpdateClassificationNodeAsync. But I can not set the parent path in the area.

        var node = new WorkItemClassificationNode();
        node.StructureType = TreeNodeStructureType.Area;
        node.Name = "Test";
        var result = await this.Client.CreateOrUpdateClassificationNodeAsync(node, "Team-Project", TreeStructureGroup.Areas);

How to set parent path for region path?

+4
source share
2 answers

You understand almost everything. To create an area along a specific path, use the following code:

var node = new WorkItemClassificationNode();
node.StructureType = TreeNodeStructureType.Area;
node.Name = "Name";
var result = this.Client.CreateOrUpdateClassificationNodeAsync(
         node,
         "Project",
          TreeStructureGroup.Areas,
          "Path/to/parent/node/");

An important parameter is the path indicating the parent of the new node.

+6
source

Source: https://habr.com/ru/post/1624398/


All Articles