TFS Client APIs for creating workitem templates?

2019-07-03 23:13发布

问题:

Of course, it is pretty possible to create work items, get a list of work items etc in TFS.

In addition to this, we need to have the functionality of allowing our users to create their own work item templates, for various file types.

Whether the TFS Client APIs are capable of uploading work item templates to TFS server?

回答1:

There is a method to get the (XML) definition: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType.Export

And, Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeCollection.Import which looks like you can upload XML to create a new work item type.

Suggestion, set up a VM with an instance of TFS Workgroup and perform lots of testing.