Templates
Group by date (month, quarter, and year)
Use sample templates below to easily group work items by date fields like CreatedDate, ClosedDate, etc.
Flat monthly grouping
{{#group 'ClosedDate@month' orderBy='$key desc' }}
{{#eachGroup}}
{{#if $key}}
## {{date $key format='mmmm yyyy'}}
{{#workItems orderByDescending="ClosedDate"}}
- {{ field 'Title' }}
{{/workItems}}
{{else}}
## No published date
{{/if}}
{{/eachGroup}}
{{/group}}
Grouping by year and month in two levels
{{#group 'ClosedDate@year,ClosedDate@month' orderBy='$key desc' }}
{{#eachGroup}}
{{#if $key}}
## {{date $key format='yyyy'}}
{{#eachGroup}}
### {{date $key format='mmmm'}}
{{#workItems orderByDescending="ClosedDate"}}
- {{ field 'Title' }}
{{/workItems}}
{{/eachGroup}}
{{else}}
## Not closed yet
{{/if}}
{{/eachGroup}}
{{/group}}
Grouping by year, quarter and month in three levels
{{#group 'ClosedDate@year,ClosedDate@quarter,ClosedDate@month' orderBy='$key desc' }}
{{#eachGroup}}
{{#if $key}}
## {{date $key format='yyyy'}}
{{#eachGroup}}
{{#eachGroup}}
### {{date $key format='Qq'}}
#### {{date $key format='mmmm'}}
{{#workItems orderByDescending="ClosedDate"}}
- {{ field 'Title' }} {{field 'ClosedDate'}}
{{/workItems}}
{{/eachGroup}}
{{/eachGroup}}
{{else}}
## Not closed yet
{{/if}}
{{/eachGroup}}
{{/group}}