New-MSDefects
Create new Defect record(s)
Syntax
New-MSDefects -ShortDescription (String) [-BusinessImpact (String)] [-Process (String)] [-SubProcess (String)] [-BatchSize (Int32)]
New-MSDefects -Defects (Array) [-DontMatchOnDefectId] [-DontMatchOnShortDescription] [-DontMatchOnLegacyId] [-LookupOnly] [-BatchSize (Int32)]
Examples
## Create a new Defect with ShortDescription "APITesterDefect", BusinessImpact "High". Assign to the "Pending\Waiting on Vendor" process/sub-process and return the new Defect Id.
(New-MSDefects -ShortDescription "APITesterDefect" -BusinessImpact "High" -Process "Pending" -SubProcess "Waiting on Vendor").Id