deleteDefect

Deletes a defect from the project based on defect number or summary. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
defectNumber long Number of the defect to delete. Set as 0 to search by summary.
summary string Summary of the defect to delete. If the summary matches more than one defect, the operation fails. This field is ignored unless defectNumber is 0.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

ttsdk.deleteDefect(cookie, 0, "Defect summary");