Skip to content

Conversation

@jeo02
Copy link
Member

@jeo02 jeo02 commented Jan 21, 2026

function FindParentWorkItem($serviceName, $packageDisplayName, $outputCommand = $false, $ignoreReleasePlannerTests = $true, $tag = $null)

  • Finds the parent work item given a service name, package display name, tag, plus that flag to filter out test release plans.
  • Also added in FindOrCreateServiceParent which uses FindParentWorkItem. Not too much of an addition so added it in here.

function FindOrCreateServiceParent($serviceName, $outputCommand = $true, $ignoreReleasePlannerTests = $true, $tag = $null)

Copilot AI review requested due to automatic review settings January 21, 2026 23:35
@jeo02 jeo02 requested a review from a team as a code owner January 21, 2026 23:35
@github-actions github-actions bot added the azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli label Jan 21, 2026
Copy link
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

This pull request adds a new FindParentWorkItem method to the DevOpsService class, implementing functionality to find parent Epic work items based on service name, package display name, tags, and optionally filtering out test release plans. The implementation mirrors similar functionality found in the PowerShell helper scripts.

Changes:

  • Added a private FindParentWorkItem method that constructs and executes WIQL queries to search for Epic work items
  • Implements conditional query building based on service name, package display name, tag filtering, and release planner test exclusion
  • Returns the first matching work item with a warning if multiple matches are found, or null if no matches exist

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

Labels

azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find or create service parent Find Parent Work Item

2 participants