Public/Ticket/Get-JBSubTickets.ps1

function Get-JBSubTickets {
    <#
    .SYNOPSIS
    Get the sub tickets for a given ticket (first level deep)
 
    .PARAMETER Id
    ticket id
 
    #>

    
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [int]$Id
    )
        
    $Params = @{
        Api  = "SubTickets"
        Body = [Collections.Hashtable]::New($PSBoundParameters)
    }
        
    Invoke-JBMethod @Params
}