Skip to main content

Release Change List

This is a sample Handlebars template for generating a release change list for a multi-stage yaml pipeline that consumes multiple artifacts


# Release details
- **Build Number**: [{{buildDetails.buildNumber}}]({{buildDetails._links.web.href}})
- **Project**: {{buildDetails.project.name}}
- **Pipeline Definition**: {{buildDetails.definition.name}}
- **Branch**: {{buildDetails.sourceBranch}}
{{#if (get 'pr.number' buildDetails.triggerInfo)}}
- **Build Trigger PR Number**: {{get 'pr.number' buildDetails.triggerInfo}}
{{/if}}
- **Started By:** {{buildDetails.requestedBy.displayName}}
- **Start Time:** {{date buildDetails.startTime 'llll'}}
- **Previous Release**: [{{compareBuildDetails.buildNumber}}]({{compareBuildDetails._links.web.href}})
- **Previous Release Completed**: {{date compareBuildDetails.finishTime 'llll'}}

[[_TOC_]]

# List of Components (ConsumedArtifacts)

| Component | Baselines (from-to) |
|-|-|-|
{{#forEach consumedArtifacts}}
{{#if (eq (get 'artifactCategory' this) 'Pipeline')}}
|{{this.alias}} | {{versionName}} |
{{/if}}
{{/forEach}}

{{#forEach consumedArtifacts}}
{{#if (eq (get 'artifactCategory' this) 'Pipeline')}}

## {{this.alias}}

[Baseline Query](https://dev.azure.com/ABB-BCI-PCP/PCP/_queries/query/?wiql={{#forEach this.workitems}}{{#if isFirst}}SELECT%20[System.Id]%2C[System.WorkItemType]%2C[System.Title]%2C[System.State]%20FROM%20WorkItemLinks%20WHERE%20([System.Links.LinkType]%20=%20'System.LinkTypes.Hierarchy-Forward')%20and%20(Target.[System.Id]%20IN%20({{/if}}{{this.id}}{{#unless isLast}}%2C%20{{/unless}}{{#if isLast}}))%20ORDER%20BY%20[System.ChangedDate]%20DESC%20mode%20(Recursive,%20ReturnMatchingChildren){{/if}}{{/forEach}})

**![](https://tfsprodweu5.visualstudio.com/_apis/wit/workItemIcons/icon_trophy?v=2 =22x22) New Features**

{{#forEach relatedWorkItems}}
{{#with fields}}
{{#if (and (and (eq (get 'System.WorkItemType' this) 'Feature') (eq (get 'Microsoft.VSTS.Common.ValueArea' this) 'Business'))(or (eq (get 'System.State' this) 'Resolved') (eq (get 'System.State' this) 'Closed')))}}
#{
{{/if}}
{{/with}}
{{/forEach}}

**![](https://tfsprodweu5.visualstudio.com/_apis/wit/workItemIcons/icon_insect?v=2 =22x22) Fixed Bugs**

{{#forEach relatedWorkItems}}
{{#with fields}}
{{#if (and (eq (get 'System.WorkItemType' this) 'Bug') (or (eq (get 'System.State' this) 'Resolved') (eq (get 'System.State' this) 'Closed')))}}
#{
{{/if}}
{{/with}}
{{/forEach}}

{{/if}}
{{/forEach}}
### Installer

[Baseline Query](https://dev.azure.com/ABB-BCI-PCP/PCP/_queries/query/?wiql={{#forEach this.relatedWorkItems}}{{#if isFirst}}SELECT%20[System.Id]%2C[System.WorkItemType]%2C[System.Title]%2C[System.State]%20FROM%20WorkItemLinks%20WHERE%20([System.Links.LinkType]%20=%20'System.LinkTypes.Hierarchy-Forward')%20and%20(Target.[System.Id]%20IN%20({{/if}}{{this.id}}{{#unless isLast}}%2C%20{{/unless}}{{#if isLast}}))%20ORDER%20BY%20[System.ChangedDate]%20DESC%20mode%20(Recursive,%20ReturnMatchingChildren){{/if}}{{/forEach}})

**![](https://tfsprodweu5.visualstudio.com/_apis/wit/workItemIcons/icon_trophy?v=2 =22x22) New Features**

{{#forEach relatedWorkItems}}
{{#with fields}}
{{#if (and (and (eq (get 'System.WorkItemType' this) 'Feature') (eq (get 'Microsoft.VSTS.Common.ValueArea' this) 'Business'))(or (eq (get 'System.State' this) 'Resolved') (eq (get 'System.State' this) 'Closed')))}}
#{
{{/if}}
{{/with}}
{{/forEach}}

**![](https://tfsprodweu5.visualstudio.com/_apis/wit/workItemIcons/icon_insect?v=2 =22x22) Fixed Bugs**

{{#forEach relatedWorkItems}}
{{#with fields}}
{{#if (and (eq (get 'System.WorkItemType' this) 'Bug') (or (eq (get 'System.State' this) 'Resolved') (eq (get 'System.State' this) 'Closed')))}}
#{
{{/if}}
{{/with}}
{{/forEach}}

# Known Defects (Global)

::: query-table typequeryidhere
:::
``

Owner: Configuration Management Team