Skip to content
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

fix: add parent-child relationship support for createWorkItem #35

Merged

Conversation

Tiberriver256
Copy link
Owner

@Tiberriver256 Tiberriver256 commented Mar 30, 2025

This pull request introduces the ability to create a child work item with a parent-child relationship in the Azure DevOps integration. The changes span multiple files and add support for specifying a parent work item when creating a new work item.

The most important changes include:

Integration Test Enhancement:

  • Added a new test case to src/features/work-items/create-work-item/feature.spec.int.ts to verify the creation of a child work item with a parent-child relationship. This test ensures that the relationship is correctly established and validated.

Feature Implementation:

  • Modified createWorkItem function in src/features/work-items/create-work-item/feature.ts to handle the addition of a parent relationship if a parentId is provided in the options.

Schema Update:

  • Updated CreateWorkItemSchema in src/features/work-items/schemas.ts to include an optional parentId field for specifying the ID of the parent work item.

Type Definition:

  • Added parentId to the CreateWorkItemOptions interface in src/features/work-items/types.ts to support the new functionality.

Server Configuration:

  • Updated createAzureDevOpsServer function in src/server.ts to pass the parentId argument when creating a work item.

#34

@Tiberriver256 Tiberriver256 merged commit 1b4ddff into main Mar 31, 2025
1 check passed
@Tiberriver256 Tiberriver256 deleted the bugfix/34--add-parent-id-to-create-work-item-feature branch March 31, 2025 00:05
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.

1 participant