< Back

Open-WorkItems

Sun Jan 19, 2020 6:08 pm

NAME Open-WorkItems



SYNOPSIS

Opens the given work item ids in your default web browser





SYNTAX

Open-WorkItems [-WorkItemIds] <Int32[]> [-Account <String>] [<CommonParameters>]



Open-WorkItems [-WorkItems] <Object[]> [-Account <String>] [<CommonParameters>]





DESCRIPTION

Open-WorkItems will open the web viewer for the given work item ids





PARAMETERS

-WorkItemIds <Int32[]>

One or more work item ids to open in the browser



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-WorkItems <Object[]>

One or more work item objects (e.g. returned by Get-MyWorkItems) to open in the browser



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Account <String>

The acount name to use. Can be inherited from a config file.

If your AzureDevOps url is hello.visualstudio.com then this value should be hello.



Required? false

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Open-WorkitemIds 2



Opens work item 2 in a browser. The account is inherited from config.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-WorkItems -WorkItemIds 1,2,3 -Account MyAccount



Open work items 1, 2 and 3 in the MyAccount project.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-MyWorkItems -Take 2 | Open-WorkItems



Open the two most recently changes work items created by or assigned to you











RELATED LINKS

about_PsAzureDevOps