public/api-v2/user/Invoke-JiraSetUserDefaultColumns.ps1
#https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-user-columns-put function Invoke-JiraSetUserDefaultColumns { [CmdletBinding()] param ( # An array of field names to display as columns [Parameter(Mandatory,Position=0)] [ValidateNotNullOrEmpty()] [string[]] $Columns, # The accountID of the user to set default columns for [Parameter(Position=1)] [string] $User, # The JiraContext object to use for the request [Parameter()] [object] $JiraContext ) process { $functionPath = "/rest/api/2/user/columns" $verb = "PUT" $query = New-PACRestMethodQueryParams if($PSBoundParameters.ContainsKey("User")){$query.Add("accountId",$User)} $body = New-PACRestMethodJsonBody @{ columns = $Columns } $method = New-PACRestMethod $functionPath $verb $query $body $method.Invoke($JiraContext) } } |