ecitsolutions / Autotask

A PowerShell module for Autotask Web Services API
MIT License
65 stars 18 forks source link

New-AtWsTicket - setting ticket work type #117

Closed LedgerLand closed 2 years ago

LedgerLand commented 2 years ago

I think I may well be loosing it, or just going blind, but when creating a ticket in Autotask you can set a "Work Type" on the ticket itself which is then the default for all time entries. However, I can't seem to find the correct option when using the New-AtWsTicket function. Is it available and, if so, where is it set?

klemmestad commented 2 years ago

You are right, you can't set "work type" on a ticket. There are no such property exposed on the Ticket entity through the API. However, I think you can set that property on a Ticket Category and then specify TicketCategory with New-AtwsTicket.

LedgerLand commented 2 years ago

Strange that they do not expose that element. Not thought of using the ticket category, I'll have a look at it.

Thanks!!