Skip to main content

Using Workflows Together

Each backlog manager workflow handles one phase of work item management. Connecting them creates a pipeline that takes work items from discovery through execution, with structured handoffs ensuring nothing falls through the cracks.

The Pipeline

┌───────────┐    ┌────────┐    ┌─────────────────┐    ┌───────────┐
│ Discovery │ ──→│ Triage │ ──→│ Sprint Planning │ ──→│ Execution │
└───────────┘ └────────┘ └─────────────────┘ └───────────┘
↑ │
└──────────────── Iterate ─────────────────────────────┘

The pipeline is linear but not rigid. Skip sprint planning when you only need to apply field assignments. Return to discovery after execution when new items surface. Each workflow reads its predecessor's output files, so the pipeline works as long as the handoff artifacts exist.

Clear Context Between Workflows

Each workflow operates within its own session context. Mixing workflows in a single session produces unreliable results because the agent carries forward assumptions from the previous workflow.

Between each workflow:

  1. Type /clear to reset the conversation context
  2. Reference the output files from the previous workflow
  3. Start the next workflow with a fresh prompt

This is the single most important practice for reliable pipeline execution. The /clear step takes seconds and prevents hours of debugging misapplied fields or incorrect iteration assignments.

IMPORTANT

The /clear step between workflows is not optional. Each workflow loads specific instruction files and planning artifacts. Stale context from a previous workflow interferes with the current workflow's classification logic.

Interaction Templates

All work item descriptions and comments follow the templates defined in ado-interaction-templates.instructions.md. Templates exist in both Markdown and HTML variants, and the correct format is selected automatically based on content format detection. This instruction file loads automatically when the backlog manager operates, so no separate configuration is needed.

End-to-End Walkthrough

This walkthrough covers a realistic pipeline run for a project with accumulated work items that have not been reviewed.

Step 1: Discover Work Items

Start with a scoped discovery pass:

Discover all work items in my project that are in the New state
and don't have an iteration assigned. Include items with missing
Area Path classification.

Discovery produces analysis files in .copilot-tracking/workitems/discovery/<scope-name>/. Review the analysis to confirm the scope is correct before proceeding.

Step 2: Clear and Triage

/clear

Then start triage:

Triage the work items from my latest discovery session. Assign Area Paths,
reclassify priorities, and flag duplicates with confidence scores.

Review the triage results at .copilot-tracking/workitems/triage/<YYYY-MM-DD>/work-items.md. Adjust any classification suggestions before continuing.

Step 3: Clear and Plan Sprint

/clear

Then plan the sprint:

Plan sprint assignments using the triage results. Show area path coverage,
hierarchy completeness, and capacity analysis for the upcoming iteration.

Review the sprint plan and handoff file. Adjust iteration assignments for any items where the automatic mapping does not fit.

Step 4: Clear and Execute

/clear

Then execute:

Execute the sprint planning handoff. Apply all checked operations.

Check the execution log for any skipped operations or state conflicts.

Step 5: Iterate

Review the execution results. If new items were discovered during the process, or if some operations were skipped due to conflicts, return to discovery or triage for another pass.

Alternative Pipelines

Not every situation requires the full pipeline. Common variations:

PRD-to-Execution

Convert a requirements document directly to work items:

┌──────────────┐    ┌───────────┐
│ PRD Planning │ ──→│ Execution │
└──────────────┘ └───────────┘

Use when building an initial backlog from a specification. Skip discovery and triage because the PRD planning workflow handles decomposition and field assignment.

Triage-Execute

Apply field corrections without sprint planning:

┌───────────┐    ┌────────┐    ┌───────────┐
│ Discovery │ ──→│ Triage │ ──→│ Execution │
└───────────┘ └────────┘ └───────────┘

Use for backlog cleanup sessions focused on field consistency and duplicate resolution.

Discovery Only

Survey the backlog without making changes:

┌───────────┐
│ Discovery │
└───────────┘

Run discovery periodically to monitor for new items without immediate action.

Planning File Lifecycle

Planning files move through states during the pipeline:

StateLocationCreated ByConsumed By
Analysisdiscovery/<scope>/planning-log.mdDiscoveryTriage
Classificationtriage/<YYYY-MM-DD>/work-items.mdTriageSprint/Execute
Sprint Plansprint/<iteration-kebab>/handoff.mdSprint PlanningExecution
PRD Hierarchyprds/<name>/handoff.mdPRD PlanningExecution
Execution Logexecution/<YYYY-MM-DD>/handoff-logs.mdExecutionUser review

Files are created once and updated in place. The execution workflow marks checkboxes in handoff files as it processes each operation, providing a built-in audit trail.

Handoff Buttons

The ADO Backlog Manager provides handoff buttons for quick workflow transitions:

ButtonAction
DiscoverStart a discovery session with the standard prompt
TriageBegin triage using latest discovery output
SprintLaunch sprint planning with latest triage results
ExecuteProcess pending handoff operations
AddQuick-add a single work item
PlanPrioritize current assigned work
PRDDelegate to PRD-to-WIT conversion
BuildCheck pipeline status
PRCreate an Azure DevOps pull request
SaveSave session state for later resumption

Artifact Summary

WorkflowInputOutputKey File
DiscoveryProject scopeWork item inventory and recommendationsplanning-log.md
TriageDiscovery outputField suggestions and duplicate flagswork-items.md
PRD PlanningRequirements docWork item hierarchy with parent-child linkshandoff.md
Sprint PlanningTriage outputIteration assignments and capacity analysishandoff.md
ExecutionHandoff filesApplied changes and operation loghandoff-logs.md

Quick Reference

TaskWorkflowPrompt Example
Survey open work itemsDiscovery"Discover work items assigned to me"
Classify unreviewed itemsTriage"Triage items from my latest discovery"
Find and resolve duplicatesTriage + Execution"Check for duplicates and resolve confirmed ones"
Plan the next sprintSprint Planning"Plan sprint assignments for the upcoming iteration"
Apply all recommendationsExecution"Execute the triage handoff"
Convert a PRD to work itemsPRD Planning"Convert this requirements doc to work items"
Create a single bug quicklyQuick Add"Add a bug: login page crashes on empty password"
Check pipeline statusBuild Info"Get build status for PR 1234"
Full backlog reviewAll workflowsRun each in sequence with /clear between them

🤖 Crafted with precision by ✨Copilot following brilliant human instruction, then carefully refined by our team of discerning human reviewers.