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

How to handle collection of data in C#?

I'm using TFS API to get Work Item Collection and then in a DataTable i made Workitem properties like WorkItem Id,Title,Type,State,Assigned To...etc as it's columns. Now in a foreach loop i'm adding the data of WorkItem collection into DataRows.…
Jaganmohanreddy
  • 391
  • 4
  • 19
0
votes
2 answers

how to remove tags in text while displaying on a web page

I am using TFS API and I try am trying to access a property "Description" of an object "WorkItem" I want to display this property on a web page. When I display this on the web page , this is what I see :

This task is created for our SSRS…

CodeNinja
  • 3,188
  • 19
  • 69
  • 112
0
votes
1 answer

TFS SDK 10.0 Compatibility with TFS Server Versions and Lock Items without a local workspace

I'm new to TFS and have just taken my first dive into the TFS world the last few days (could say that my knowledge on TFS till now, is limited to just reading blogs, MSDN and quick read through a couple of books). Currently I've been given a task…
Joe Varghese
  • 59
  • 1
  • 9
0
votes
1 answer

Updating Tags on Work Items in TFS 2013 using API?

I have some code where I try to set some tags on some work items using the TFS API: foreach (KeyValuePair kvp in dict) { kvp.Value.Tags = "test"; } But when I run the above I get: {"TF26194: The…
u123
  • 15,603
  • 58
  • 186
  • 303
0
votes
1 answer

How to select all users from TFS into a list?

I want to make a list of all users of TFS irrespective of the fact if they have any changesets or not. I want all the users in my list, using C# and MVC. How do I do this?
ZaraQ
  • 57
  • 1
  • 12
0
votes
1 answer

Find TFS items in other branches

Here is a slightly different take on this question (Find the tfs path of merged branch), different enough to deserve its own question. In the above link, the authors describe how you can programmatically traverse the folder hierarchy using TFS…
paulyphonic
  • 854
  • 1
  • 6
  • 15
0
votes
2 answers

TFS - VS Extension: Add work item to pending changes via API

I am currently working on a VS extension / add-in and I need to associate work items with the pending changes (without triggering a check-in). After searching for some hours I couldn't find a way to accomplish this via the API. The only way I found…
Maggi
  • 53
  • 7
0
votes
2 answers

Where does the work item iterationId field come from?

in the tfs database Tfs_DefaultCollection There are nearly no keys. (maybe none, as I haven't exhaustively searched) I'm able to see all my work items, and current/previous states just fine. However when I join WorkItemAre to Tbl_Iteration none of…
Maslow
  • 18,464
  • 20
  • 106
  • 193
0
votes
1 answer

CheckinAll:The file encoding -3 is not a valid encoding

While resolving conflict, I will get The file encoding -3 is not a valid encoding. I am resolving conflict on folder. Code : workspace.MergeContent(conflict, false); Error: The file encoding -3 is not a valid encoding. at…
0
votes
1 answer

workitem.open() KeyNotFoundException TFS 2013

I'm stuck with this exception "The given key was not present in the dictionary" which indicates that some value was not found in the dictionary, but the strange thing is I'm not using any dictionary, I guess it is some internal code of the TFS API…
0
votes
0 answers

Why is parent suite null when accessing a test case directly from project?

I think the TFS API has a bug in it, here I'll try and demonstrate: Using a team project object like this: ITestManagementTeamProject project I can get direct access to the test case like this: var testCase = project.TestCases.Find(testCaseId); If…
JL.
  • 78,954
  • 126
  • 311
  • 459
0
votes
2 answers

Can't update area of a test case programatically

I'm trying to update the area of a test case programatically. The code I have seems logical, but fails with: An unhandled exception of type 'Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException' occurred in…
JL.
  • 78,954
  • 126
  • 311
  • 459
0
votes
1 answer

VersionSpec equivalent of /version:W

What is the VersionSpec equivalent of "/version:W" when used with TF.EXE? For example, Buck Hodges demonstrated the following usages (from…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
0
votes
1 answer

TFS API - Search For Test Case by custom field "Extended ID", in a specific hierarchy, then update its result

I'm new to TFS API. I have looked around but found incomplete solutions to my problems. What I want to do is search for a specific test case by its custom field "Extended ID" = "EXT:123" in Test Plan with Id = 104, and Test Suite with Id = 1455.…
user3758380
  • 21
  • 1
  • 1
  • 5
0
votes
1 answer

Modify FieldDefinitions programmatically

There is currently a need within our shop to be able to add/modify/delete the FieldDefinitions on a WorkItemStore programmatically, without/before messing with the WorkItemType definitions. Is this possible? I know that i can GET all the fields on a…
MaxOvrdrv
  • 1,780
  • 17
  • 32