---
title: "Critical and high bugs setup"
url: https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup
description: "How the critical and high bugs report is generated, published, and refreshed behind the scenes, and how the back end is set up."
author: Writing sample by Marla Sowards
---

> For an index of every page on this site, see [llms.txt](https://www.marlasowards.com/llms.txt).

> **Note:** I built this project for an enterprise SaaS company. However, what I've shared is genericized to mask proprietary information, including names of companies, products, features, and UI controls. Product images are mockups generated by Claude.

# Critical and high bugs setup

**Jump to**

- [How they're generated](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#how-theyre-generated)

- [How they're published and refreshed](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#how-theyre-published-and-refreshed)

- [Back-end setup](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#back-end-setup)

  - [Azure DevOps queries](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#azure-devops-queries)
  - [Release Notes extension templates](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#release-notes-extension-templates)
  - [Build pipelines](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#build-pipelines)
    - [Local scripts assemble the report](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#local-scripts-assemble-the-report)

## How they're generated

The report of critical and high bugs is generated [the same way as known issues](https://www.marlasowards.com/samples/release-notes-automation-guide/37-known-issues-setup.md#how-theyre-generated).

## How they're published and refreshed

The report of critical and high bugs is [published](https://www.marlasowards.com/samples/release-notes-automation-guide/37-known-issues-setup.md#how-theyre-published) and [refreshed](https://www.marlasowards.com/samples/release-notes-automation-guide/37-known-issues-setup.md#how-theyre-refreshed) the same way as known issues.

## Back-end setup

See [Custom fields on Azure DevOps work items](https://www.marlasowards.com/samples/release-notes-automation-guide/includes/28-work-item-fields-setup.md).

### Azure DevOps queries

Critical and high bugs reports are generated from queries of Azure DevOps work items based on [Work item logic](https://www.marlasowards.com/samples/release-notes-automation-guide/27-work-item-logic.md).

Each Classic edition version's report is built with two queries: one for the open bugs and the other for the closed bugs.

#### Example of a query for open bugs

##### Logic

See [Work item logic](https://www.marlasowards.com/samples/release-notes-automation-guide/27-work-item-logic.md).

#### Example of a query for closed bugs

##### Logic

See [Work item logic](https://www.marlasowards.com/samples/release-notes-automation-guide/27-work-item-logic.md).

### Release Notes extension templates

Each Classic edition version's report is built with two Release Notes extension templates: one for the open bugs and the other for the closed bugs.

There are no work items in the templates because the templates are populated and concatenated during the Azure DevOps build.

See [Release Notes extension setup](https://www.marlasowards.com/samples/release-notes-automation-guide/42-release-notes-extension-setup.md).

#### Example of a template for open bugs

##### Label

#### Example of a template for closed bugs

##### Label

#### Sorting by two factors

```handlebars
{{#workItems orderBy='ClosedDate desc, Severity'}}  |  {{#workItems orderBy='Severity asc, Vertex.ProductsAffected asc'}}
```

### Build pipelines

There is one pipeline per Classic edition version. A script task concatenates and publishes the results of the open and closed bugs queries to a single Clearpath Community page.

See [Known issues setup](https://www.marlasowards.com/samples/release-notes-automation-guide/37-known-issues-setup.md#build-pipelines) for pipeline naming conventions.

#### YAML build file variables

See [Community site pages setup](https://www.marlasowards.com/samples/release-notes-automation-guide/43-community-site-pages-setup.md#base-64-encoded-api-token) for steps to get a token for the `restUserToken` pipeline variable and get Clearpath Community wiki and wiki page variables.

#### Local scripts assemble the report

The pipeline executes scripts in the **scripts/known-issues-combined** subdirectory in the release-notes repo to output a document assembled from the two queries:

- md-to-html.ps1: Transforms Markdown exported during the Release Notes extension task to HTML
- prettify-css.ps1: Applies CSS styles supported by Clearpath Community
- concat-final-output.ps1: Fix any formatting problems and concatenate reports of open and closed bugs

### Refresh

The report of critical and high bugs is refreshed [the same way as known issues](https://www.marlasowards.com/samples/release-notes-automation-guide/40-refresh-known-issues-and-critical-and-high-bugs.md).
