Group by sprint (iteration path)

Given a list of user stories we group stories by sprint (iteration path)

Template

{{#group 'IterationPath' orderBy='$key'}}

{{#each groups}}

## Sprint: {{iterationPath $key display='last' }}

{{#workItems orderBy='Title'}}
- {{{ field 'WorkItemType' }}} {{{ field 'Title' }}}
{{/workItems}}

{{/each}}

{{/group}}

Work items

IdTitleIterationPathWorkItemType
1Item 1Team Alpha\Sprint 36User Story
2Item 2Team Alpha\Sprint 37User Story
3Item 3Team Alpha\Sprint 37Bug

Result

Sprint: Sprint 36

  • User Story Item 1

Sprint: Sprint 37

  • User Story Item 2
  • Bug Item 3