admin管理员组

文章数量:1390391

So, I have, let's say, 100 Bugs created under a test plan…These 100 bugs are linked to the test cases but some test cases have more than 1 bug. so, I need list/count of test cases which are blocked by a bug.

I know a bug lets' say '12345' is connected to 20 tests, '123456' is connected to 17 tests. What I don’t know is do we have 3,5,7, 11 or 17 test cases that are blocked these bugs 12345 & 123456

Hope that makes sense.

So, I have, let's say, 100 Bugs created under a test plan…These 100 bugs are linked to the test cases but some test cases have more than 1 bug. so, I need list/count of test cases which are blocked by a bug.

I know a bug lets' say '12345' is connected to 20 tests, '123456' is connected to 17 tests. What I don’t know is do we have 3,5,7, 11 or 17 test cases that are blocked these bugs 12345 & 123456

Hope that makes sense.

Share Improve this question edited Mar 14 at 11:11 DarkBee 15.5k8 gold badges72 silver badges118 bronze badges asked Mar 14 at 11:04 VasuVasu 3191 gold badge8 silver badges20 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

If you want to list the Test Cases which have Bugs linked, you can set the work item query like as below:

  1. Query type: Work items and direct links
  2. Filters for top level work items:
    • Work Item Type = Test Case
    • Some other clauses based on your need.
  3. Filters for linked work items:
    • Work Item Type = Bug
    • Some other clauses based on your need.
  4. Filter options:
    • Only return items that have matching links
    • Types of links: Return links of any type


If you want to list the Test Cases which have particular Bugs linked, you can set the work item query like as below:

  1. Query type: Work items and direct links
  2. Filters for top level work items:
    • Work Item Type = Test Case
    • Some other clauses based on your need.
  3. Filters for linked work items:
    • Work Item Type = Bug
    • And ID In <ID-01>,<ID-02>
    • Some other clauses based on your need.
  4. Filter options:
    • Only return items that have matching links
    • Types of links: Return links of any type

本文标签: azureHow to query in AzDo and get count of test cases blocked by some particular bug numberStack Overflow