Skip to content

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

Merged
Tiberriver256 merged 2 commits intomainfrom
bugfix/34--add-parent-id-to-create-work-item-feature
Mar 31, 2025
Merged

fix: add parent-child relationship support for createWorkItem#35
Tiberriver256 merged 2 commits intomainfrom
bugfix/34--add-parent-id-to-create-work-item-feature

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