tfs-workitem

How to query for TFS work items with or without tags

时光总嘲笑我的痴心妄想 提交于 2020-01-13 08:30:50
问题 TFS supports querying on tags, but I can't find a way to create a TFS work item query to return results that have no tags or any tag. It is not possible to sort the Tag column in the TFS web access, so I can't even return all work items and then sort on the column to focus on those with tags and those without tags. For example, I was hoping to see a wild card or any for the Tags value below: 回答1: I'm about a year too late, but I just accomplished this by doing Tags, Does Not Contain, "". I

Given a TFS changeset, how can I find what work item(s) it is linked to?

自古美人都是妖i 提交于 2020-01-13 06:11:21
问题 It's easy to see what changesets are linked to a given work item. But is it possible, given a changeset, to find out what work item(s) it is linked to? 回答1: If you have the changeset number then in TFS explorer in VS press CRTL + G and provide the changeset number and click OK. That will bring the change set in team explorer. Then you can click on a folder/file and select view history which will show you the work items related to it. See view changesets for more information. Also, check out

How can I retrieve a list of workitems from TFS in C#?

旧时模样 提交于 2020-01-11 18:50:34
问题 I'm trying to write a project reporting tool in WPF / C#. I want to access all the project names on our TFS (Team Foundation Server), and then display statistics for each work item in a given project. I've got the project names, but getting the actual work items is what's giving me a hard time. Here's what I've got so far: public const string tfsLocation = "http://whatever"; // get the top list of project names from the team foundation server public List<string> LoadProjectList() { var tpc =

Create Large Amount of Work Items in TFS Using Javascript REST API

佐手、 提交于 2020-01-11 13:37:10
问题 I need to create around 6000 work items via my TFS extension. I use typescript and REST API in my extension. below is the code I use to create work item var ops = [ { path: "/fields/System.Title", op: "add", value: "Hello world" } ]; var options = { url: 'http://localhost:8080/tfs/DefaultCollection/Agile Git/_apis/wit/workItems/$Bug?api-version=2.2', username: 'username', password: 'password', domain: 'domain', method: 'PATCH', headers: { 'Content-Type': 'application/json-patch+json' }, body:

How to resolve this?, are you missing assembly reference

纵饮孤独 提交于 2020-01-07 08:03:33
问题 The namespace client does not exist in Microsoft.teamfoundation are you missing assembly reference I have added Nuget packages Microsoft.TeamFoundationServer.Client and Microsoft.TeamFoundationServer.ExtendedClient but I'm still facing this issue. I want to extract work item details from the TFS. 回答1: Microsoft.TeamFoundationServer.Client provides access to version control, work item tracking, build, and more via public REST APIs. Microsoft.TeamFoundationServer.ExtendedClient works with and

error TF30063: Force prompt for credentials when connecting programmatically to visualstudio.com

橙三吉。 提交于 2020-01-06 06:25:25
问题 I'm aware of alternate credentials (Authenticating to hosted TFS: TF30063: You are not authorized to access .visualstudio.com) but I need users to be prompted for the credentials when connecting to visualstudio.com. Similar in spirit to the code below, which does not work var aTeamProjects = new TfsTeamProjectCollection(m_oTfsCollectionUri); aTeamProjects.ClientCredentials.PromptType = CredentialPromptType.PromptIfNeeded; aTeamProjects.Authenticate(); In the code above the Authenticate

How to use LIMIT keyword as using in ms sql by WIQL to query TFS workItem

早过忘川 提交于 2020-01-01 10:58:10
问题 I'm working on TFS API, I don't know that TFS API have any things like LIMIT keyword or no.I need it for paging. Thanks 回答1: There is nothing equivalent to the SQL LIMIT keyword in TFS WIQL, you will need to implement the paging yourself. One approach would be to retrieve all the results on the first access, and cache them and page them yourself. Another approach would be to dynamically construct the WIQL query each time your user pages. For example: Run a WIQL query to return just the work

Number of WorkItems with changesets or linked items with changesets

百般思念 提交于 2019-12-31 04:27:11
问题 We have a system in use where developers will log a support ticket using a new 'Support Ticket' work item in TFS 2010. If there's a code change as a result they will link the changeset to this work item type. Alternatively if there's a related Bug in the system that requires a code change they will link the Support ticket to the bug and then check in the changeset linked to the bug. I'm trying to pull out a report either in TFS or preferably using SQL that gives me: the number of support

how to get a Task id (storyid,Featureid,Feature name) by Wiql in c# by 1 Query)?

☆樱花仙子☆ 提交于 2019-12-31 03:56:04
问题 i have a Hierarchical structure like this in which a Feature can have many User Stories each having one to many Tasks. But a User Story may have no parent Feature as well as some Task may have no parent User Story F1 -->U1,U2,U3 --->t1,t2,t3 I need a Wiql Query in c# by which for any Taskid input I get its parent storyid (or 0 if it has no parent) along with this latter parent Feature id (0 if it has no parent User Story) and name ('other' if Feature id is 0) 回答1: You may find any parent

TFS 2013 event handling on work item change

a 夏天 提交于 2019-12-30 07:48:13
问题 I would like to develop software which runs every time a work item is being created or changed in a TFS team collection. My TFS server version is 2013 and i'm planning to upgrade soon to 2015. I tried the following article but it doesn't work on 2013... What do you recommend? 回答1: Found the answer! here's my code: using Microsoft.TeamFoundation.Common; using Microsoft.TeamFoundation.Framework.Server; using Microsoft.TeamFoundation.WorkItemTracking.Server; using System; using System