Open JB0710 opened 1 year ago
Long time since you posted this, but in case it helps others, you need to pass the project through as a hash table too. That will fix this particular experience but it will still show up as a service ticket. $newticket = new-cwmticket @NewTicketParameters -project @{id=$project}
Or you can add this to your NewTicketParameters splat
Trying to add a project ticket via PowerShell, when I use the -project with New-CWMTicket I get "New-CWMTicket : Cannot process argument transformation on parameter 'project'. Cannot convert the "386" value of type "System.Int32" to type "System.Collections.Hashtable".
Any assistance would be greatly appreciated!
Here is my code: