TFS 2013: work item customization: need TreePath functionality for custom field

301 Views Asked by At

I am trying to customize a work item template and need to add a field which can capture hierarchical data.I am using TFS power tools to edit work items. I tried to create a new field with datatype as TreePath but when I save it, it throws an error: TF26179 – Field Type 'TreePath' can be used only with System.AreaPath & System.IterationPath

Is there any workaround to use the TreePath control for custom fields?

2

There are 2 best solutions below

0
Andy Li-MSFT On BEST ANSWER

This should be duplicated with this thread : TFS 2013: Custom TreePath Fields.

Just as the error message mentioned the Field Type 'TreePath' can be used only with System.AreaPath & System.IterationPath.

So, Tree Path is not supported for other fields for now, and there is a user voice submitted to request the feature, you can vote it or submit a new user voice to suggest the feature.

For custom control, you can reference the source code of the vsts-extension-color-control

1
Shayki Abramczyk On

You can't create a new field with TreePath data type, but you can create custom controls for other data types, so you can create custom controls that display hierarchical information as long as you are able to represent this in an existing data type, in practice the String type.

Examples of custom controls at https://witcustomcontrols.codeplex.com/.