Public/Service/Priorities/Get-CWMPriority.ps1
function Get-CWMPriority { [CmdletBinding()] param( [int]$id, [string]$Condition, [ValidatePattern('\S* (desc|asc)')] $orderBy, [string]$childconditions, [string]$customfieldconditions, [int]$page, [int]$pageSize, [string[]]$fields, [switch]$all ) $Endpoint = '/service/priorities' if($id){ $Endpoint = Join-Url $Endpoint $id } return Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |