wiql

how to find all the Sprint's bugs,Feature,Task work in TFS by WIQL C# code?

你。 提交于 2019-12-11 14:54:09
问题 i want to find the Query to find all the bugs,Task,Feature,Stories of all the sprints of both my team. i have 2 team in my Project name " MRI_Scrum_GIt " which cantains 2 team Phoneix and SS and these 2 teams contains there Respected sprints(which is going on or done) and how to get all the Teams invloved in the Project(Query) in my case SS and phoniex of MRI_Scrum 回答1: I've created query with group operation instead operation "In": For my project wiql in saved query is: SELECT [System.Id],

A list containing 2 more lists works slow in looping can i use Thread to make this faster?

这一生的挚爱 提交于 2019-12-11 07:26:19
问题 This is my code in which a list contains 2 more lists where the WorkItem collection contains a large number of records such as 7,000 it takes 10 min . Is there any way to make it faster and in case it's deciding the workItem type if it's a bug, task or product backlog item. Please tell me how to make the looping faster. It's taking 10 min to loop 7,000 records can we use threading to make it faster? have already Tried the parallel.for with lock the workitemlist but getting error."No Sequence

How do I write a TFS 2010 Work Item query clause whos value is a field value?

江枫思渺然 提交于 2019-12-11 05:58:20
问题 I think this question may be spawned from lack of knowledge, but here we go... I am trying to write a new team query (using the new query option of team explorer, in VS 2010 ) what I want is fairly simple; essentially a list of work items whos [Completed Work] value exceeds the [Original Estimate] field value. In other words WIs that have exceeded their original estimates. The VS 2010 view does not seem to have an option to show the WIQL being generated under the hood, so I'll have to

Retrieve the WIQL of a saved query created in TFS

三世轮回 提交于 2019-12-11 00:57:28
问题 I have created a query in TFS interactively using the web interface. Now I want to get the WIQL that it is using. The only way I know how is to call the RESTful api, and pass $expand=wiql. Is there an easier way? Ideally from the interactive web interface? 回答1: Doesn't seem like you can do it in the Web Access. You can however do it in Visual Studio (if you have it). Open the Query and then Edit it, now if you do File , Save as... you can then save the query as a .wiq XML file, that will

how to get all fields details of a workitem by wiql c# asp.net?

放肆的年华 提交于 2019-12-08 04:32:23
问题 bascially i hierarchy of my TFS is like this P1 ->task1 ->task2 ->task3 ->task4 p1 cantains the following fields story owner,story author,assigned to,state,priorty,title and P1 cantains 4 task i want all the details of task with p1 fields(story owner,story author,assigned to,state,priorty and title). code for this i am not getting p1 fields with it's task details(story owner,story author,assigned to,state,priorty and title). var tpc = TfsTeamProjectCollectionFactory.GetTeamProjectCollection

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

六眼飞鱼酱① 提交于 2019-12-04 08:06:07
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 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 item ID's that match the query. SELECT [System.Id] FROM WorkItems WHERE <conditions> Cache that list of IDs

how to get Task id,Feature id,Complete hrs by WIQL tfs by date?

梦想与她 提交于 2019-12-02 09:26:04
how to get Task,Feature id,completed hours by date. lets say there is a task 123 in which was created on a sprint which start date is 1st July and end at 10th July task 123 effort hours is 5 completed hrs is 0 from 1-7-2018 and on 5th July effort is 3 hrs completed 2 hrs and on 10th July effort is 1 hr and completed is 4 hrs so how can i find task id,Feature id (by Tree WIQL) of date from 1st July to 5th July. Based on your description, seems you want to get the history (revisions) for a specific work item. If it is, then you can use the REST API to retrieve that: See Get a list of work items

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

 ̄綄美尐妖づ 提交于 2019-12-02 04:12:52
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) You may find any parent branch for work item with this query: You can use this code to get a list of parents: using Microsoft