< Back

Get-DevOpsWorkItem

Sat Jan 18, 2020 9:36 am

NAME Get-DevOpsWorkItem



SYNOPSIS

Retrieves work items by ID, WIQK or custom filters.





SYNTAX

Get-DevOpsWorkItem [-Connection] <Hashtable> -WorkItemId <Int32[]> [-Collection <String>] [<CommonParameters>]



Get-DevOpsWorkItem [-Connection] <Hashtable> -Collection <String> -Query <String> [<CommonParameters>]



Get-DevOpsWorkItem [-Connection] <Hashtable> [-Collection <String>] -Filters <PSObject[]> [<CommonParameters>]





DESCRIPTION







PARAMETERS

-WorkItemId <Int32[]>

Specifies the ID of the work item(s) to retrieve.



Required? true

Position? named

Default value

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-Collection <String>

Specifies the TFS collection name.



Required? true

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Connection <Hashtable>

Specifies connection information.



Required? true

Position? 0

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Query <String>

Specifies the WIQL query used to determine which work items to retrieve.



Required? true

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Filters <PSObject[]>

Specifies the filters used to determine which work items to retrieve.



Required? true

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSObject

Objects that contain information about the work items that were retrieved.







RELATED LINKS