Using the section helper we create separate sections of work items. We also use the {{ count }}
helper to output the total number of work items in each section.
Template
# Release Notes
{{#section 'major'}}
## Major features ({{count}})
{{#workItems}}
### {{field 'Title' }}
{{{ field 'Description' }}}
{{/workItems}}
{{/section}}
{{#section 'minor'}}
## Minor updates ({{count}})
{{#workItems}}
### {{field 'Title' }}
{{{ field 'Description' }}}
{{/workItems}}
{{/section}}
{{#section 'bugfix'}}
## Bug fixes ({{count}})
|Id|Title|
|--|--|
{{#workItems}}
|{{id}}|{{field 'Title'}}|
{{/workItems}}
{{/section}}
Work items
Id | Title | WorkItemType | Label |
---|
100 | 🍇Story 100 | User Story | major |
200 | 🍈Story 200 | User Story | major |
300 | 🍊Story 300 | User Story | minor |
400 | Bug400 | Bug | bugfix |
Result
Release Notes
Major features (2)
🍇Story 100
🍈Story 200
Minor updates (1)
🍊Story 300
Bug fixes (1)