0

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?

Machavity
  • 30,841
  • 27
  • 92
  • 100
DevOpsy
  • 667
  • 1
  • 8
  • 18

2 Answers2

0

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/.

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
  • I looked at the link, I don't see any custom controls there that can display hierarchical information? Could you give more details if you have done it yourself? – DevOpsy Jul 17 '18 at 23:40
0

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

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55