Public/Jira/Screens/Set-AtlassianCloudJiraScreen.ps1
function Set-AtlassianCloudJiraScreen{ [CmdletBinding()] param( [Parameter(Mandatory, Position=0)] [ValidateNotNullOrEmpty()] [string]$Id, [Parameter(Mandatory = $false, Position=2)] [string]$Name, [Parameter(Mandatory = $false, Position=2)] [string]$Description, [Parameter(Mandatory, Position=3)] [ValidateNotNullOrEmpty()] [string]$AtlassianOrgName, [Parameter(Mandatory, Position=4)] [ValidateNotNullOrEmpty()] [string]$Pat ) $data = @{} if ($Name) { $data += @{ name = $Name } } if ($Description) { $data += @{ description = $Description } } return Invoke-AtlassianCloudJiraMethod -Method Put -Data $data -Endpoint "screens/$($Id)" -Experimental -AtlassianOrgName $AtlassianOrgName -Pat $Pat -Verbose:($Verbose.IsPresent) } |