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

Get-VSTeamWIQL #314

Closed jhoneill closed 3 years ago

jhoneill commented 4 years ago

Steps to reproduce

Get-VSTeamWiql -Id 'Assigned to me' -Expand | select -expand workitems | ft

Expected behavior

Should allow tab completion of the query name, and show work items table

Actual behavior

Prompts for team, No tab expansion. 
$wiql           = @"
SELECT   [System.Id], [System.WorkItemType], [System.Title], [System.CreatedBy], [System.AssignedTo], [System.State], [System.Tags]
FROM      WorkItemLinks 
WHERE (  [System.Links.LinkType] = 'System.LinkTypes.Hierarchy-Forward')
ORDER BY [System.Id] DESC 
MODE  (   MayContain)
"@    
$w              = Get-VSTeamWiql -Query $wiql -Expand

Expected behavior

$w contains results of the query. 

Actual behavior

Errors on expand

PR in the pipeline for this

SebastianSchuetze commented 3 years ago

close this sice it should be fixed with PR #315