Public/Project/ProjectPhases/Get-CWMProjectPhase.ps1
function Get-CWMProjectPhase { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [Alias('projectId')] [int]$parentId, [int]$id, [switch]$count, [string]$condition, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, [string]$childConditions, [string]$customFieldConditions, [int]$page, [int]$pageSize, [string[]]$fields, [switch]$all ) $Endpoint = "/project/projects/$($parentId)/phases" Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |