Stories and bugs grouped by category

Given a list of user stories we group stories and bugs by a custom category field

Open in playground

Template

Given the following template

{{#section '$UserStory' }}

## New features

{{#group 'Custom.Category'}}

{{#each groups}}

### {{$key }}

{{#workItems}}
- {{field 'Title'}}
{{/workItems}}

{{/each}}

{{/group}}

{{/section}}

{{#section '$Bug' }}

## Fixed bugs

{{#group 'Custom.Category'}}

{{#each groups}}

### {{$key }}

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

{{/each}}

{{/group}}

{{/section}}

Work items

Given these work items were added

Id Title Custom.Category WorkItemType
1 Feature 1 Mobile App User Story
2 Feature 2 Web App User Story
3 Bug 3 Mobile App Bug
4 Bug 4 Web App Bug

Result

Bravo Notes generates the document like this:

New features

Mobile App

  • Feature 1

Web App

  • Feature 2

Fixed bugs

Mobile App

  • Bug 3

Web App

  • Bug 4
Open in playground
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us