-
Notifications
You must be signed in to change notification settings - Fork 229
Add find parent work item to azsdk cli #13681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
FindParentWorkItemmethod 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
azure-sdk-tools/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1
Line 173 in 6e6038a
FindOrCreateServiceParentwhich usesFindParentWorkItem. Not too much of an addition so added it in here.azure-sdk-tools/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1
Line 622 in 6e6038a