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
Id | Title | WorkItemType | Parent | Tested By |
---|---|---|---|---|
100 | 🍇Story 100 | User Story | 30🍐 | 1000 |
200 | 🍈Story 200 | User Story | 30🍐 | 2000 |
300 | 🍊Story 300 | User Story | 40🥭 | 3000 |
400 | 🍋Story 400 | User Story | 40🥭 | 4000 |
Other work items
Id | Title | WorkItemType |
---|---|---|
30 | 🍐Feature 1a | Feature |
40 | 🥭Feature 1b | Feature |
50 | 🍒Feature 2a | Feature |
60 | 🍓Feature 2b | Feature |
1000 | Test Case 1000 | Test Case |
2000 | Test Case 2000 | Test Case |
3000 | Test Case 3000 | Test Case |
4000 | Test Case 4000 | Test 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