Skip to content

fix: update work item configuration to use repro steps for Bug child … - #1523

Open
Dan Hellem (danhellem) wants to merge 1 commit into
mainfrom
users/danhellem/work-item-add-child-fix-1
Open

fix: update work item configuration to use repro steps for Bug child …#1523
Dan Hellem (danhellem) wants to merge 1 commit into
mainfrom
users/danhellem/work-item-add-child-fix-1

Conversation

@danhellem

@danhellem Dan Hellem (danhellem) commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

This pull request updates the logic for assigning description fields when creating child work items, ensuring that bug work items use the correct field for repro steps. It also adds comprehensive tests to verify this behavior.

Work item field assignment improvements:

  • Updated configureWorkItemTools so that for work items of type "Bug", the description is added to the Microsoft.VSTS.TCM.ReproSteps field, while for other types, it remains in System.Description. The correct multiline format field is also set depending on the work item type. [1] [2]

Testing enhancements:

  • Added a new test to ensure that bug child work items use the ReproSteps field and not System.Description, and that the multiline format is only set for Markdown-formatted bugs.

GitHub issue number

#1521

Associated Risks

N/A

PR Checklist

  • I have read the contribution guidelines
  • I have read the code of conduct guidelines
  • Title of the pull request is clear and informative.
  • 👌 Code hygiene
  • 🔭 Telemetry added, updated, or N/A
  • 📄 Documentation added, updated, or N/A
  • 🛡️ Automated tests added, or N/A

🧪 How did you test it?

Manually tested and updated auto tests

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add_child work items: ReproSteps is written unconditionally, populating non-Bug types (Task/User Story/Feature) with a duplicate, stale description

2 participants