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
0
votes
1 answer

Error when using TFS API concerning updating work items( HTTP Status 400 )

I am trying to update a field of a work-item on TFS using the TFS API according to the Microsoft document. There is something wrong with the api "Update work items" when using the sample code listed on the page, the returning status code of the…
RickyXRQ
  • 3
  • 2
0
votes
1 answer

TFS | Get Linked User Story to workitem using c#

I want to fetch user story which is linked to a test case. I have test case details but want to fetch the linked user story through it in c#. Not able to find any helpful reference online.
Stark
  • 109
  • 3
0
votes
1 answer

Get TFS ServerVersion using TfsTeamProjectCollection

I'm using TfsTeamProjectCollection to get the list of collection in the TFS Uri but I need to know the requested Uri is TFS2013 or TFS2015; I have used the below code to find the BuildServerVersion var tfsServerVersion =…
Sankar M
  • 4,549
  • 12
  • 37
  • 55
0
votes
1 answer

How to find a Shelveset using information provided by a CodeReviewRequest

If I have the name and the owner of the Shelveset, I can find it successfully using the following code: foreach (Shelveset shelveset in versionControlServer.QueryShelvesets(workItem. Fields["Associated Context"].Value.ToString(),…
Larry Freeman
  • 418
  • 6
  • 19
0
votes
0 answers

TECoreException: The server's error could not be parsed as XML. No SOAP fault found

I am getting below error while trying to fetch versionControlClient object using TFS java SDK. Any leads what could cause this ? we are using TFS-2010 com.microsoft.tfs.core.exceptions.TECoreException: The server's error could not be parsed as XML. …
Chunkyy Garg
  • 107
  • 1
  • 5
0
votes
1 answer

Read files from TFS Documents

I need to read files from TFS Documents. Someone know about api for this? I tried this code, but I don't know what is the service interface for documents TfsTeamProjectCollection server = new TfsTeamProjectCollection(new…
Shoshana Tzi
  • 99
  • 4
  • 10
0
votes
1 answer

Get teams I am member of

I want to retrieve all teams in a specific TFS team project where I am member. Is this possible with the REST Api? I know that you can fetch all teams, for each team the members and then sort all teams out where I am not a member. Is it possible to…
Knerd
  • 1,892
  • 3
  • 28
  • 55
0
votes
1 answer

How to create Test result in TFS2015 and add them to summary page

I need to see my test's result in the summary page. The test report in custome format, so I can't use 'in-box' testing task of TFS, but I would like to have the same behaviour as for Unit tests: statistic in summary page with link leading to Test…
mpril
  • 51
  • 4
0
votes
2 answers

Adding Generic Test Cases to TFS in C#

So I'm trying to find a way in which I can insert new generic test cases into TFS through C#. These are the same ones that you can create in Visual Studio so I was hoping there was someway to do this with the TFS API somehow. Any hints of…
Ian Dallas
  • 12,451
  • 19
  • 58
  • 82
0
votes
1 answer

Ajax calls to TFS 15 Rest Api stopped working after upgrade

In TFS 2015 Update 3 everything was working without issues. I used to consume all apis using the npm package request without any problems. Using jquery the following call also would always complete correctly: //this used to work in 2015 Update…
YOBB
  • 125
  • 1
  • 10
0
votes
0 answers

TFS Workspace.get timing out after an hour, and returning error 500

I am using the TFS API (Microsoft.TeamFoundation.Client, etc.) When I am just getting one or two items from the server, it works fine (albeit slowly) - using workspace.Get(getRequests, GetOptions.Overwrite Or GetOptions.GetAll) (where getRequests…
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
0
votes
1 answer

TFS: PublisherNotFoundException when trying to create a subscription for "rm"

On-premises TFS 2015 u2. I want to create an HTTP service hook subscription for a release creation event. As directed here and here, I'm sending a POST request to…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
0
votes
2 answers

How to create work items using Visual Studio Team Services Client for Node.js (vso-node-api)?

I need to create VSTS work items using Visual Studio Team Services Client for Node.js (vso-node-api), Please provide any samples on this?
0
votes
1 answer

JsonSerializationException from TFS REST API response

I am trying to use the new TFS/VSTS REST APIs with our on-prem TFS 2015 server, and cannot retrieve test runs as the response fails internal validation. Using client code like the following: var connection = new VssConnection(serverUri),…
agc93
  • 663
  • 1
  • 7
  • 19
0
votes
2 answers

How to set Backlog Iteration and Team/Area connection programmatically?

So far I can programmatically create a new Team and a new Area, but when I navigate to the TFS 2015 "Work" tab I see this error: TF400509: No backlog iteration path was specified. You must select an iteration path. So if I manually choose one…
alejandrormz
  • 597
  • 5
  • 13