addDefect
Adds a defect to the project. If valid information is sent, a record ID for the defect is returned. A SOAP error envelope is returned if the operation fails.
Parameters
| Parameter | Type | Description |
|---|---|---|
| cookie | long | Session cookie returned by projectLogon. |
| pDefect | CDefect | Defect field values and properties. |
Return value
| Value | Type |
|---|---|
| recordID | long |
Example
CDefect def = new CDefect();
def.summary = "Defect summary";
def.type = "Cosmetic";
long defectID = ttsdk.addDefect(cookie, def);