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
445 stars 155 forks source link

Possible typo in parameter name `<Name>vsteam_lib.roject</Name>` #376

Closed glennsarti closed 3 years ago

glennsarti commented 3 years ago

When running a script to output work items I saw this

id                : 266
rev               : 4
fields            : @{System.Id=266; System.WorkItemType=User Story; System.State=New; System.Title=As an *redacted*
url               : https://dev.azure.com/ *redacted*/_apis/wit/workItems/266
Title             : *redacted*
Description       :
State             : New
AreaPath          :
IterationPath     :
AssignedTo        :
vsteam_lib.roject :                        <------------------- What is this?
WorkItemType      : User Story
Reason            :

vsteam_lib.rojec seems like a typo.

And indeed it really does look like a typo:

https://github.com/MethodsAndPractices/vsteam/blob/280a320f750215386743063fb0e8c8e8ff32c377/Source/types/vsteam_lib.WorkItem.ps1xml#L31

Steps to reproduce


(Get-VSTeamWiql -Query "Select [System.Id], [System.Title], [System.State], [System.WorkItemType] From WorkItems WHERE [System.State] <> 'Closed' AND [System.State] <> 'Resolved' AND [System.AreaPath] = '*REDACTED*'" -expand).WorkItems | Select *

Environment data

OS

Server

$VSTeamVersionTable Doesn't exist?!?!

> Get-VSTeamAPIVersion
Name                           Value
----                           -----
Pipelines
VariableGroups                 5.0-preview
Policy                         5.0
ExtensionsManagement           5.0-preview
Version                        AzD2019
Tfvc                           5.0
ServiceEndpoints               5.0-preview
Release                        5.0
Packaging                      5.0-preview
HierarchyQuery                 5.0-preview
TaskGroups                     5.0-preview
Core                           5.0
Processes                      5.0-preview
DistributedTaskReleased
Git                            5.0
Graph
Build                          5.0
MemberEntitlementManagement
DistributedTask                5.0-preview
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
DarqueWarrior commented 3 years ago

Thanks for the report.

DarqueWarrior commented 3 years ago

PR is moving through pipeline