< Back

Get-SmaServiceDeskTicket

Thu Jan 16, 2020 9:43 am

NAME Get-SmaServiceDeskTicket



SYNOPSIS







SYNTAX

Get-SmaServiceDeskTicket [[-TicketID] <Int32>] [[-QueryParameters] <String>] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

Returns a list of all tickets. Sub-entities that can be used on shaping and filtering directives include owner,

submitter, queue, category, priority, status, machine, asset, related_tickets, referring_tickets





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-QueryParameters <String>

Any additional query parameters to be included. String must begin with a '?' character.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TicketID <Int32>

Specifies the ticket to return data for.



Required? false

Position? 0

Default value 0

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

PSCustomObject







NOTES









-------------------------- EXAMPLE 1 --------------------------



PS> Get-SmaServiceDeskTicket -QueryParameters "?filtering=hd_status.name eq new"



Retrieves all tickets with a status of `new`

-------------------------- EXAMPLE 2 --------------------------



Get-SmaServiceDeskTicket -TicketID 1234 -QueryParameters "?shaping= hd_ticket regular,owner limited,submitter

limited"



Retrieves the standard attributes, plus owner and submitter for ticket ID 1234



RELATED LINKS

Online Version: https://github.com/ArtisanByteCrafter/K ... kTicket.md