MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
442 stars 155 forks source link

WorkItemIds are null #534

Closed bobbytreed closed 7 months ago

bobbytreed commented 1 year ago

Steps to reproduce

# Assuming Default parameters for needed parameters
Get-MyWorkItems | Select Id

Expected behavior

I expected that...

WorkItemIds would be there so I could pipe them to other cmdlets (Get-VSTeamWorkItem -Expand Relations)

Actual behavior?

Get-MyWorkItems | select id

Id

On Which OS have you tried it?

Windows

What was your server version?

Azure DevOps Services

Other server version

No response

Log output of used API

Billing                     : 5.1-preview.1
Build                       : 5.1
Core                        : 5.1
DistributedTask             : 6.0-preview
DistributedTaskReleased     : 5.1
ExtensionsManagement        : 6.0-preview
Git                         : 5.1
Graph                       : 6.0-preview
HierarchyQuery              : 5.1-preview
MemberEntitlementManagement : 6.0-preview
Packaging                   : 6.0-preview
Pipelines                   : 5.1-preview
Policy                      : 5.1
Processes                   : 6.0-preview
Release                     : 5.1
ServiceEndpoints            : 5.0-preview
TaskGroups                  : 6.0-preview
Tfvc                        : 5.1
VariableGroups              : 5.1-preview.1
Version                     : VSTS
Wiki                        : 6.0
WorkItemTracking            : 6.0-preview.1

Log output of $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0, 7.1.0, 7.2.0, 7.3.4}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
SebastianSchuetze commented 1 year ago

Hi @bobbytreed thanks for the report. Are you sure you are using the correct cmdlet?

Get-MyWorkItems is not any of the cmdlets the module supports.

StingyJack commented 7 months ago

@bobbytreed - I think you are trying to reach this other repo https://github.com/mmanela/PsAzureDevOps#:~:text=normal%20PowerShell%20docs.-,Get%2DMyWorkItems,-Gets%20the%20work

SebastianSchuetze commented 7 months ago

Thnkas @StingyJack for the hint! I checked it and I will close it for now since it is not relevant.