Search code examples
vb.nettfstfs-sdk

Is there a way to add tags programmatically to TFS Work Items?


I want to be able to mass update work items with a certain tag programmatically. Is there currently a way to do this? I've checked the workitem class and have seen that there is a tags property that is readonly. Is there another way to accomplish this through code?

Best,

Michael


Solution

  • Editing of Tags through the API and Excel is supported as of 2013.2. I would recommend that you update to the latest version of TFS to get that and tones of other fixes.

    As mentioned by Brian Harry:

    Work Item Tagging

    In TFS 2012.2, we introduced lightweight work item tagging to easily categorize and find work items. We’ve generally gotten good feedback on the feature but plenty of requests for enhancements. Here’s some things we are adding in this release (thus 2013.2):

    • ...
    • Object model & REST API support – We added support to access/set tags in the object model and also exposed REST APIs.
    • ...