Questions tagged [tfs-sdk]

This tag is used to identify questions about the use of the Azure DevOps / TFS API, in any supported language, and any tools that support or build upon it. There are different APIs available. The REST API is the newer API. The older set of APIs consists of the Client Object Model, the Server Object Model and the Build Process Object Model. For .NET there are the .NET client libraries implementing clients for all these APIs.

This tag is used to identify questions about the use of the Azure DevOps / TFS API, in any supported language, and any tools that support or build upon it.

There are different APIs available. The REST API (https://learn.microsoft.com/en-us/rest/api/azure/devops) is the newer API. The older set of APIs consists of the Client Object Model, the Server Object Model and the Build Process Object Model (https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/bb130146%28v%3dvs.120%29).

For .NET there are the .NET client libraries implementing clients for all these APIs (see https://learn.microsoft.com/en-us/azure/devops/integrate/concepts/dotnet-client-libraries).

569 questions
3
votes
1 answer

Populating a Control in a Team Foundation Server 2010 Work Item Form

I've been tasked with creating a small application to query a customer database, and map its bug entries into TFS. All is well with nearly everything so far. My customer db queries work, and I can easily create a new WorkItem and place it into TFS.…
Josh Clayton
  • 300
  • 2
  • 11
3
votes
2 answers

TFS 2010 API Documentation

So after countless hours crawling the internet I am unable to find any form of proper API for TFS 2010 for C# (I have not installed any SPs yet) I am unable to find any proper results I have found the SDK on the Microsoft site but it is for Java for…
Hello World
  • 1,379
  • 4
  • 20
  • 41
3
votes
0 answers

TFS API: Cannot add testpoint after testrun is saved

(Environment: VSTS2010 using IronPython and the TFS SDK) Workflow #1 The following workflow behaves as I expect: Create a new testrun Add testpoint(s) Save testrun My expected behavior: The testrun is saved with the testpoints. Observed behavior:…
Hox
  • 31
  • 1
3
votes
3 answers

Get Specific Version TFS API

I wrote some codes for get latest version of selected project. When I run it, it works. But if I delete the folder and run it again, it says "all files up to date" I solved this problem with using Visual Studio TFS source kontrol and Get Specific…
mozkarakoc
  • 269
  • 6
  • 14
3
votes
1 answer

Get date of changeset in TFS SDK?

I want to get date of changeset. The TFS SDK has much reference. Which reference and class do I need?
3
votes
1 answer

Extending the TFS Work Item editor in Visual Studio 2010

I would like to extend the team explorer work item editor with a custom functional button along side export to excel, outlook etc, taking information from the current work item. I know there is a way to modify the items themselves, as described at…
lobotommy
  • 91
  • 6
3
votes
1 answer

getting TFS build definition metadata programmatically

I would like to get and then edit, programmatically, all of the process paramater metadata from a TFS build definition. Does anyone know how to do that? Thank you.
user1475722
  • 101
  • 1
  • 4
3
votes
2 answers

How to get information about destroyed workitems?

I use TFS 2010 and I need using TFS API to retrieve an information about work items that were deleted. There is a table [WorkItemsDestroyed] in the TFS DB that contains the information about destroyed work items. Is there any way to get that…
3
votes
3 answers

Revert (or undo saved changes) a WorkItem to an older version in TFS API

I am looking to create an "undo" mechanism for a TFS work item using the TFS API - this will undo committed changes. Basically, after saving new data (also using the API) to the work item, I would like the option to revert the WorkItem back to the…
user1060500
  • 1,505
  • 1
  • 21
  • 40
2
votes
2 answers

Best way to get the TFS URL

I found number of sample of the TFS Api using the TFS Url to get the tfs server. Is there a way to use the default server configured on the machine. I don't want to put the URL in all the dll I write or in all the script.
Syll
  • 79
  • 1
  • 6
2
votes
1 answer

Issue (prob Authentication) Connecting to TFS 2008 via a Website

I've written a website to display certain tasks and bugs in TFS to our sister company. It works fine on my machine ... but not deployed. In live the exception at the bottom "Work Item Store is null" is always thrown ... Can anyone assist…
Andy Clarke
  • 3,234
  • 5
  • 39
  • 66
2
votes
2 answers

How to programmatically attach a file to TFS work item

I want attach a file to a work item of type bug. While saving bug details to server I have this attachment.
Suneetha
2
votes
1 answer

WIQL: How to get the content of a field of a work item returned by a query

I have to obtain the value of a field in a single work item. The query only returns one work item, because in my where clause I specify exaclty which Work Item Id I want. It's sort of a GetFieldByWorkItemId kind of method: public double…
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
2
votes
1 answer

TFS 2010 work item - Work item links

When a user opens a bug from a test case, I need to check if the test case is linked to a requirement item and if so I need to link the bug to the requirement item. How can I know this information? I use following piece of…
user963491
  • 151
  • 1
  • 8
2
votes
2 answers

"Calculating" code ownership index using TFS SDK 2010

I need your help on an idea that came to my mind recently. Speaking in TFS terms, I am trying to come up with a formula that can determine the ownership index for some source-controlled file (i.e. who is the developer most responsible for that…
Kiril Stanoev
  • 1,865
  • 2
  • 20
  • 33