Skip to content

getWorkItemTrackingApi.getClassificationNode return type is incorrect. #651

Closed

Description

@ianhco

The following client call:

const witClient = await this.connection.getWorkItemTrackingApi()
const rootNode = await witClient.getClassificationNode(this.adoProject, TreeStructureGroup.Areas, '', 99)
// rootNode: WorkItemClassificationNode

However, console log prints:

{
   count: 2,
   value: [...]
}

Activity

  1. ianhco commented on Oct 18, 2025

    @ianhco
    Author

    Upon testing, this works:

    await witClient.getClassificationNode(this.adoProject, 'areas' as unknown as TreeStructureGroup, '', 99);

    Seems like the enum is matching unintended values, or it is matching 0, which is a falsy value and completely strips the param off the request

  2. github-actions commented on Jan 16, 2026

    @github-actions

    This issue has had no activity in 90 days. Please comment if it is not actually stale

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions