---
title: "Work item logic"
url: https://www.marlasowards.com/samples/release-notes-automation-guide/27-work-item-logic
description: "Which Azure DevOps work items become release notes, known issues, and bug reports, and how their fields become the text of each note."
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.

# Work item logic

Release notes, known issues, and critical and high bugs are generated from Azure DevOps queries that return work items that meet the following criteria:

## Logic

| Work item type                  | State                      | Severity         | Publish | Under the section    |
| ------------------------------- | -------------------------- | ---------------- | ------- | -------------------- |
| Feature or product backlog item | Closed                     | N/A              | Yes     | **What's new** item  |
| Bug                             | Closed                     | N/A              | Yes     | Fixed bug            |
| Bug                             | <> Closed                  | N/A              | Yes     | Known issue          |
| Bug                             | <> Closed                  | Critical or High | N/A     | Critical bug, open   |
| Bug                             | Closed in the past 60 days | Critical or High | Yes     | Critical bug, closed |

> **Note**
>
> See [Fill out work items](https://www.marlasowards.com/samples/release-notes-automation-guide/29-fill-out-work-items.md).

The following fields are on the **RN** tab of all Features, Product Backlog Items, and Bugs in Azure DevOps.

| Field               | What it is                                                          | Type           |
| ------------------- | ------------------------------------------------------------------- | -------------- |
| Publish             | Dropdown to indicate if the work item should be published as a note | Single-select  |
| Release Note        | Field to write the release note                                     | Rich HTML text |
| Product(s) Affected | Dropdown to select which product(s) the note is about               | Multi-select   |
| Version(s) Affected | Dropdown to select which version(s) the note applies to             | Multi-select   |

## How the fields become notes

Selections determine which work items translate to notes, how notes are organized, and the text they contain.

- [Release notes template setup](https://www.marlasowards.com/samples/release-notes-automation-guide/34-release-notes-setup.md#release-notes-extension-templates)
- [Known issues template setup](https://www.marlasowards.com/samples/release-notes-automation-guide/37-known-issues-setup.md#release-notes-extension-template)
- [Critical and high bugs template setup](https://www.marlasowards.com/samples/release-notes-automation-guide/39-critical-and-high-bugs-setup.md#release-notes-extension-templates)
