workitem

A way to find out all affected files of a workItem or group of chgsets in TFS 2008?

寵の児 提交于 2020-01-01 09:58:04
问题 I'm trying to figure out a way to find out which files were affected by a work item in TFS 2008. I realize that this is a duplication of a question already asked by someone else here - View a list of all files changed as part of a Workitem in TFS but it went unanswered and I've been, off and on, looking for this for a while. I understand can view the links tab of the work item and then view each changeset to see the files that have been changed. But, the work item very likely will end up with

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

How to copy a work item and its tasks

对着背影说爱祢 提交于 2019-12-30 16:27:11
问题 I would like to make a copy of a work item and all of its task. I'm using this version of the product: 11.0.50727.1 I'm using Scrum 2.0 template for the project If this is possible, how can I do it? 回答1: Have you tried Excel? It's your best friend when doing mass editing of work items. You can copy/paste a number of work items. by selecting all columns except the ID column. Copy them and then paste them at the bottom of the open query in Excel. You need to ensure you're using a Tree based

TFS API: How to check if a work item has been deleted or is non existent on the TFS Server? (not if it is accessible)

*爱你&永不变心* 提交于 2019-12-24 14:34:52
问题 I am using TFS API and I need to check if a workitem has been deleted or if it does not exist. If i use WorkItemStore.GetWorkItem(Int32) and pass the Id of a deleted Work Item here, then the message says that " The work item does not exist , or you do not have permission to access it ." I need to check only for the deleted condition and not the inaccessible condition. I've searched in the API but could not find any way to check for it. I need this because I need the list of workitems that

TFS How to get links from work item id using REST api

你说的曾经没有我的故事 提交于 2019-12-23 00:43:40
问题 I'm trying to get the list of links in TFS given the work item ID using a rest API. I want to filter out the links so that I only have the commits. What format for a web request would I use? I've tried https://{server & port}/{project}/_workitems?id=140464 but to no avail - It brings me to the 'assigned' to me query area I have also been omitting API-version=4.1 from the URL because for some reason that doesn't work... Also, I tried looking up the work item in a query but there is little

Work Item state change rules in TFS - Any way to use “AND”s or “OR”s?

女生的网名这么多〃 提交于 2019-12-22 20:12:42
问题 I have this state in a work item that can only be set if one of four other fields (dates) are filled in . It doesn't matter which one of the four, if at least one is filled then the state can be set . Example: This scenario lets you change the work item state: DateA 01/05/2012 DateB ' DateC ' DateD ' This one too: DateA ' DateB 01/05/2012 DateC 01/05/2012 DateD ' This one doesnt: DateA ' DateB ' DateC ' DateD ' I thought of using WHEN , but it won't work, as I can't write "WHEN this AND WHEN

What are the differences among bugs, issues and tasks in TFS

不想你离开。 提交于 2019-12-20 08:47:52
问题 Could anyone give me a short explanation on the differences among bugs, issues, and tasks in TFS? 回答1: For the Scrum TFS Process Template Bug- Any problem in existing functionality, or missing functionality. Defect in code or requirement, error which is not designed to be. Issue (Impediment)- Any problem which might block the development process, example : a third party driver you identified as dependency is not releasing on time, so it is an issue in your development process. Task- Any work

WIQL query to get all the team and the users in a Project?

北战南征 提交于 2019-12-20 07:43:51
问题 let's say i have a project name ="Scrum" and that has some users the project and got sprints so **i want dstinct users of the Project that the Sprints in Scrum **. image attached. 回答1: You can use also this code for teams: using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.Framework.Common; using Microsoft.TeamFoundation.ProcessConfiguration.Client; using Microsoft.TeamFoundation.WorkItemTracking.Client; using System; using System.Collections.Generic; using System.Linq;

TFS 2015 API ignores ChangedBy

蓝咒 提交于 2019-12-11 21:13:59
问题 I have a WebApplication that creates and changes WorkItems through the API. I want the "ChangedBy" field be set to a specific string-value. This worked well with TFS 2013. After upgrading to TFS 2015 my value is ignored and ChangedBy is always set to the identity of the user that I use for connecting to the TFS. This is my code: //Set some values on the WorkItem item.Fields["ChangedBy"].Value = "MyUserName"; item.Save(); Is there a way to enforce the behaviour like it was in TFS 2013? 回答1:

How do I create a bug in TFS using REST API in PowerShell?

痴心易碎 提交于 2019-12-11 03:09:25
问题 I am trying to create a bug in TFS using REST API in PowerShell with the code below, but I'm unable to figure out how to fill the $Bug variable with names of those param's and data. Param( [string]$vstsAccount = "MyAccountName", [string]$projectName = "ProjectName", [string]$keepForever = "true", [string]$user = "", [string]$token = "Mytoken" ) # Base64-encodes the Personal Access Token (PAT) appropriately $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}"