Separate work items into sections
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
Given the following 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
Given these work items were added
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
Bravo Notes generates the document like this:
Release Notes
Major features (2)
🍇Story 100
🍈Story 200
Minor updates (1)
🍊Story 300
Bug fixes (1)
Id | Title |
---|---|
400 | Bug400 |