tfs-workitem

How to modify the default Check-in Action in TFS?

落爺英雄遲暮 提交于 2019-12-29 07:31:24
问题 The default check-in action for a work-item is "resolve". I'd like to set it to "associate" so that this work item isn't automaticaly closed if I check-in stuff too fast. How can I do that? 回答1: Yup, the check-in action can only be associated to a state transition (i.e. Active to Resolved). In my blog post that Fredrick linked to (http://www.woodwardweb.com/vsts/top_tfs_tip_3_r.html) I talk about how to remove that. You'll need to customize the work item for everyone in your team project to

Unable to load DLL 'Microsoft.WITDataStore32.dll' (TeamFoundation.WorkItemTracking)

末鹿安然 提交于 2019-12-28 17:28:12
问题 I am posting this in the hope that it will save someone else the time and effort of figuring this one out: My current setup is VS2015 against TFS 2013.4 Problem My old PC setup had VS2013, and I had been using the Microsoft.TeamFoundation.WorkItemTracking.Client namespace to get some Work Item information from TFS. I recently had to rebuild my PC, and continued development of a program that gets this information. To my dismay, I kept getting an error: Unable to load DLL 'Microsoft

Unable to load DLL 'Microsoft.WITDataStore32.dll' (TeamFoundation.WorkItemTracking)

依然范特西╮ 提交于 2019-12-28 17:28:01
问题 I am posting this in the hope that it will save someone else the time and effort of figuring this one out: My current setup is VS2015 against TFS 2013.4 Problem My old PC setup had VS2013, and I had been using the Microsoft.TeamFoundation.WorkItemTracking.Client namespace to get some Work Item information from TFS. I recently had to rebuild my PC, and continued development of a program that gets this information. To my dismay, I kept getting an error: Unable to load DLL 'Microsoft

How can I query work items and their linked changesets in TFS?

僤鯓⒐⒋嵵緔 提交于 2019-12-28 14:55:08
问题 In TFS 2010 I have work items with linked changesets. I can generate a query that reports the work items I'm looking for. Now I want to do a query of Work Items and Direct Links that includes all the changesets linked to these work items. In the query editor I can't find any means to specify a changeset as the linked-to item. Are work-items the only output possible from a query? 回答1: An option is to use the TFS API like the following snippet. var projectCollection = new

how to get Hiearchical structure in WIQL workitem

纵然是瞬间 提交于 2019-12-24 06:25:16
问题 i have a hiearchial strurcture in TFS like this where a 1 Feature can have 'N' number of Product backlog items and single product Product backlogitem can have 'N' number of task/bugs tree structure Feature1-> PB1-> Task1,task2,task3 my Query string querystring = string.Format("select [System.Id], [System.Title],[Story.Author],[Story.Owner],[System.AssignedTo]," + " [System.WorkItemType],[Microsoft.VSTS.Scheduling.StoryPoints],[Microsoft.VSTS.Common.Priority]," + "[Microsoft.VSTS.Scheduling

Is there any restriction for number of characters in TFS REST API?

孤街浪徒 提交于 2019-12-24 05:57:42
问题 I am trying to retrieve workitems from TFS using REST API. https://servername/tfs/collectionname/_apis/wit/workitems?ids='xxxx,yyyy,zzzz,....n' (where n count is 420). Each id is a 4 digit number. I could not retrieve more than 409 workitems. If the query exceed more than 409 ids, I receive "404 - File or directory not found" error. Please help me to find solution for this. 回答1: I can reproduce this issue,it has restriction for the length of the strings when using the REST API. In this case,

how to get all the Users along with Team Iteration of a project of TFS WIQL?

孤人 提交于 2019-12-24 01:27:15
问题 i want to get all the users with there Iteration in a project. Lets say Project 'Precient' has 9 distinct users with 20 iteration so i want distinct users with all the Iteration in the project WIQL C# .it's related to the Question. WIQL query to get all the team and the users in a Project? but does not help me fully 回答1: You may get that through REST API or Net API. This is sample for Net API. You may get all users from group "Project Valid Users" You may get all Iterations from Project root

How to find a Shelveset using information provided by a CodeReviewRequest

天涯浪子 提交于 2019-12-23 04:21:31
问题 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(), "NW\\LFreeman")) where workItem is an instance of a CodeReviewRequest workItem . I can get the name of the CodeReviewRequest from workItem.Fields["Associated Context"] If I set the owner to null as such, it returns an empty list. It has been reported to me that this

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

How can I prohibit State change from Proposed to Active in TFS Requirement work-item based on value of another field?

不打扰是莪最后的温柔 提交于 2019-12-22 11:04:28
问题 I've added department approvals to the standard CMMI-Template Requirement work-item. I'd like to limit the System.State field such that it can only be changed from Proposed to Active when all department approvals are set to "Yes". I've tried the following change to Requirement.xml <FIELD name="State" refname="System.State" type="String" reportable="dimension"> <WHEN field="Approval.Marketing" value="No"> <READONLY /> </WHEN> <WHEN field="Approval.Quality" value="No"> <READONLY /> </WHEN>