Group by parent feature and show linked items

Given a list of user stories we group stories by their parent feature and then for each story display a list of test cases.

You can also output other link types. See these docs for a complete list of link types.

Template

{{#group 'parent'}}

{{#each groups}}

## Feature: {{field 'Title'}}

{{#workItems}}

### Story: {{id}} {{field 'Title'}}

{{#links 'Microsoft.VSTS.Common.TestedBy-Forward' }}

- Tested by:  {{field 'Title'}}

{{/links}}

{{/workItems}}

{{/each}}

{{/group}}

Work items

IdTitleWorkItemTypeParentTested By
100🍇Story 100User Story30🍐1000
200🍈Story 200User Story30🍐2000
300🍊Story 300User Story40🥭3000
400🍋Story 400User Story40🥭4000

Other work items

IdTitleWorkItemType
30🍐Feature 1aFeature
40🥭Feature 1bFeature
50🍒Feature 2aFeature
60🍓Feature 2bFeature
1000Test Case 1000Test Case
2000Test Case 2000Test Case
3000Test Case 3000Test Case
4000Test Case 4000Test Case

Result

Feature: 🍐Feature 1a

Story: 100 🍇Story 100

  • Tested by: Test Case 1000

Story: 200 🍈Story 200

  • Tested by: Test Case 2000

Feature: 🥭Feature 1b

Story: 300 🍊Story 300

  • Tested by: Test Case 3000

Story: 400 🍋Story 400

  • Tested by: Test Case 4000