getDefect
Retrieves a defect record based on number or summary. A SOAP error envelope is returned if the operation fails.
To retrieve a defect based on record ID, use getDefectByRecordID.
To edit a defect, use editDefect or editDefectByRecordID.
Parameters
| Parameter | Type | Description |
|---|---|---|
| cookie | long | Session cookie returned by projectLogon. |
| defectNumber | long | Number of the defect to retrieve. Set as 0 to search by summary. |
| summary | string | Summary of the defect to retrieve. If the summary matches more than one defect, the operation fails. This field is ignored unless defectNumber is 0. |
| bDownloadAttachments | boolean | Indicates if attachments should be retrieved. Using False may improve performance when the file contents are not needed. |
Return value
| Value | Type |
|---|---|
| pDefect | CDefect |
Example
CDefect def = ttsdk.getDefect(cookie, 0, "Defect summary", false);