Skip to content

docs: Add Azure DevOps work item markdown formatting guide#4253

Open
paulmedynski wants to merge 1 commit intomainfrom
dev/paul/ado-instructions
Open

docs: Add Azure DevOps work item markdown formatting guide#4253
paulmedynski wants to merge 1 commit intomainfrom
dev/paul/ado-instructions

Conversation

@paulmedynski
Copy link
Copy Markdown
Contributor

Description

This PR adds comprehensive instructions for ensuring markdown content is properly formatted when creating or updating Azure DevOps work items.

Changes

  • New file: .github/instructions/ado-work-items-markdown.instructions.md

    • Safe two-step conversion pattern for changing field format without data loss
    • Newline integrity validation checks
    • Batch verification scripts for compliance
    • Common failure modes and troubleshooting
  • Updated: AGENTS.md

    • Added link to new instruction guide in the technical instructions table

Context

These instructions document the workflow discovered while updating 26 work items (4 stories + 22 tasks) for the pipeline implementation project. The patterns ensure:

  • Markdown content is properly rendered (not HTML)
  • Newline characters are preserved in multi-line descriptions
  • Format changes don't result in data loss
  • Bulk updates can be verified for compliance

- Create ado-work-items-markdown.instructions.md with safe patterns for markdown description updates
- Document two-step conversion for changing field format without data loss
- Include newline integrity checks and batch verification scripts
- Update AGENTS.md to link new instruction guide for discoverability
Copilot AI review requested due to automatic review settings April 30, 2026 19:06
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Apr 30, 2026
@paulmedynski paulmedynski added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Apr 30, 2026
@paulmedynski paulmedynski moved this from To triage to In progress in SqlClient Board Apr 30, 2026
@paulmedynski paulmedynski added this to the 7.1.0-preview2 milestone Apr 30, 2026
@paulmedynski paulmedynski marked this pull request as ready for review April 30, 2026 19:09
@paulmedynski paulmedynski requested a review from a team as a code owner April 30, 2026 19:09
@paulmedynski paulmedynski moved this from In progress to In review in SqlClient Board Apr 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new repository instruction guide documenting a safe, repeatable workflow for updating Azure DevOps work item descriptions to Markdown while preserving newline integrity, and links it from the agent guidance index.

Changes:

  • Added a new instruction file under .github/instructions/ covering az rest JSON-patch patterns and verification scripts for System.Description Markdown formatting.
  • Updated AGENTS.md to reference the new guide in the “Detailed Technical Instructions” table.
  • Minor formatting tweaks in AGENTS.md (additional blank lines for readability).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/instructions/ado-work-items-markdown.instructions.md New guide documenting Markdown formatting rules, safe update steps, and post-update verification checks for ADO work items.
AGENTS.md Adds a link to the new ADO work item Markdown guide in the technical instructions table (plus minor spacing adjustments).

Comment on lines +49 to +60
```bash
jq -n '[
{"op":"replace","path":"/fields/System.Description","value":""},
{"op":"replace","path":"/multilineFieldsFormat/System.Description","value":"markdown"}
]' >/tmp/patch-step1.json

az rest \
--method PATCH \
--resource 499b84ac-1321-427f-aa17-267ca6975798 \
--url "https://dev.azure.com/<org>/<project>/_apis/wit/workitems/<id>?api-version=7.1-preview.3" \
--headers "Content-Type=application/json-patch+json" \
--body @/tmp/patch-step1.json
```bash
python3 - <<'PY'
import json, subprocess
ids = [44787, 44794] # replace with your target IDs
az rest \
--method GET \
--resource 499b84ac-1321-427f-aa17-267ca6975798 \
--url "https://dev.azure.com/<org>/_apis/projects?api-version=7.1-preview.4"
Comment on lines +66 to +75
jq -n --arg d "$desc" '[
{"op":"replace","path":"/fields/System.Description","value":$d}
]' >/tmp/patch-step2.json

az rest \
--method PATCH \
--resource 499b84ac-1321-427f-aa17-267ca6975798 \
--url "https://dev.azure.com/<org>/<project>/_apis/wit/workitems/<id>?api-version=7.1-preview.3" \
--headers "Content-Type=application/json-patch+json" \
--body @/tmp/patch-step2.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems.

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants