CDefect

Contains information for a specific defect.

To create a test run from the defect, use createDefectForTestRun.

To retrieve a list of the defect’s links, use getLinksForDefect.

Extends

CItemToTrack

Fields

Field Type Description
recordid long Unique defect record ID.
defectnumber long Unique number assigned to the defect. If the project is configured to not automatically assign numbers, the value is 0.
summary string Defect summary.
state string Current workflow state. Read only.
disposition string Dropdown list value. May be a renamed field. Use getDropdownFieldValuesForTable to retrieve a list of field values.
type string Dropdown list value. May be a renamed field. Use getDropdownFieldValuesForTable to retrieve a list of field values.
priority string Dropdown list value. May be a renamed field. Use getDropdownFieldValuesForTable to retrieve a list of field values.
product string Dropdown list value. May be a renamed field. Use getDropdownFieldValuesForTable to retrieve a list of field values.
component string Dropdown list value. May be a renamed field. Use getDropdownFieldValuesForTable to retrieve a list of field values.
reference string Contents of the Reference field. May be a renamed field.
severity string Dropdown list value. May be a renamed field. Use getDropdownFieldValuesForTable to retrieve a list of field values.
enteredby string User who entered the defect. Will receive a default value unless it is overwritten. See Formatting name fields for formatting information.
workaround string Multi-line text field. See Working with multi-line text fields for formatting information.
workaroundInlineAttachList CFileAttachment[] CFileAttachment items associated with the Workaround field.
dateentered DateTime Date the defect was entered.
locationaddedfrom string Method used to add the defect. Read only.
datetimecreated DateTime Date the defect was added.
datetimemodified DateTime Date the defect was last modified.
createdbyuser string User who found the defect. See Formatting name fields for formatting information.
modifiedbyuser string User who last modified the defect. See Formatting name fields for formatting information.
actualhourstofix double Total number of actual effort hours. Read only.
estimatedhours double Number of estimated hours to fix the defect. Read only.
remaininghours double Number of remaining hours to fix the defect. Read only.
variance double Difference between actualhourstofix and remaininghours compared to estimatedhours. Read only.
storypoints long Unit-less quantity representation of time remaining.
percentdone long Percent fixed for the defect. Read only.
reportedbylist CReportedByRecord[] Individual defect Reported by records.
eventlist CEvent[] Workflow event objects associated with the defect.
pSCCFileList CSCCFileRecord[] Source control files attached to the defect.
customFieldList CField[] Custom field values for the defect.

Returned by

Used in