locked
API Query for Tags used in a TFS Project RRS feed

  • Question

  • Is there a way to get a list of Tags used in a TFS Project through an API call?

    I've seen this question a couple of times and people have responded with querying with Tags and getting the Tags from a WorkItem.  This isn't what I'm looking for.  I want to get the complete list.

    Thanks,

    Cash

    Monday, April 20, 2015 2:43 PM

Answers

  • hi Cash

    which TFS version are you using ?

    Visual Studio Online does have a work item tags REST API which returns the available tags - eventually it is available in TFS 2013.4 already or in TFS 2015 .


    Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

    • Marked as answer by cashfoley Tuesday, April 21, 2015 9:24 PM
    Tuesday, April 21, 2015 8:43 PM

All replies


  • Have yous seen "Tag Admin for Visual Studio"

    https://visualstudiogallery.msdn.microsoft.com/3821cea9-96b4-46e3-9609-ad1d2c344424

    This seems to be doing it.

    Tuesday, April 21, 2015 1:19 PM
  • Hi Cash,

    Sorry for missing the informaiton. "Tag Admin for Visual Studio 2013" is a 3rd party extention to TFS, I haven't tried with it to mange tags for work items. You can have a check if it works for you.

    Best regards,

    Tuesday, April 21, 2015 3:34 PM
    Moderator
  • Hi Charles.  Thanks for taking the time.

    However, this plug-in doesn't work for me in the sense I need the API calls it seems to be using.

    It displays all the TAGS and their counts in Visual Studio Plug in.  While that's nice, I have a different purpose.  With that said, it must be getting the information somehow.

    Can anyone help me find these calls?

    Tuesday, April 21, 2015 7:54 PM
  • hi Cash

    which TFS version are you using ?

    Visual Studio Online does have a work item tags REST API which returns the available tags - eventually it is available in TFS 2013.4 already or in TFS 2015 .


    Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

    • Marked as answer by cashfoley Tuesday, April 21, 2015 9:24 PM
    Tuesday, April 21, 2015 8:43 PM
  • That's getting real close!  I'm using TFS 2013 Update 4 hosted server.  Your link seems to be specific for VS Online.  

    I'm trying to see if there is an equivalent for an onsite hosted server and haven't found it yet.

    Tuesday, April 21, 2015 9:01 PM
  • Thanks Daniel.  While I didn't find docs for a hosted server, I was able to translate it using a bit of trial and error guessing:

    http://{tfs server}:8080/tfs/{collection}/_apis/tagging/scopes/{project id}/tags

    So, really you provided the answer.  Thanks again!

    Tuesday, April 21, 2015 9:23 PM
  • Hi Cash,

    The REST API for tags in on-premise TFS, you can try the format as below:

    http://{tfs server}:8080/tfs/{collection}/_apis/tagging/scopes/{project id}/tags?api-version=1.0

    Best regards,

    • Proposed as answer by Alex Cluer Monday, February 27, 2017 4:12 PM
    Friday, May 22, 2015 9:14 AM
    Moderator