This function list tickets that match your condition.
Get-CWMTicket [[-TicketID] <Int32>] [[-Condition] <String>] [[-orderBy] <Object>] [[-childconditions] <String>] [[-customfieldconditions] <String>] [[-page] <Int32>] [[-pageSize] <Int32>] [-all] [<CommonParameters>]
Required false
Position 1
Default value 0
Accept pipeline input false
Accept wildcard characters false
This is your search condition to return the results you desire.
Example:
(contact/name like "Fred%" and closedFlag = false) and dateEntered > [2015-12-23T05:53:27Z] or summary contains "test" AND summary != "Some Summary"
Required false
Position 2
Default value
Accept pipeline input false
Accept wildcard characters false
Choose which field to sort the results by
Required false
Position 3
Default value
Accept pipeline input false
Accept wildcard characters false
Allows searching arrays on endpoints that list childConditions under parameters
Required false
Position 4
Default value
Accept pipeline input false
Accept wildcard characters false
Allows searching custom fields when customFieldConditions is listed in the parameters
Required false
Position 5
Default value
Accept pipeline input false
Accept wildcard characters false
Used in pagination to cycle through results
Required false
Position 6
Default value 0
Accept pipeline input false
Accept wildcard characters false
Number of results returned per page (Defaults to 25)
Required false
Position 7
Default value 0
Accept pipeline input false
Accept wildcard characters false
Return all results
Required false
Position named
Default value False
Accept pipeline input false
Accept wildcard characters false
PS C:\>Get-CWMTicket -TicketID 1
Returns ticket 1
PS C:\>Get-CWMTicket -all
Returns all tickets
PS C:\>Get-CWMTicket -condition 'summary="test"'
Returns the first 25 tickets with the summary of test
Author: Chris Taylor
Date: 10/10/2018
https://developer.connectwise.com/products/manage/rest?a=Schedule&e=ScheduleEntries&o=GET
https://developer.connectwise.com/products/manage/rest?a=Service&e=Tickets&o=GETBYID