Defect record

Not applicable

In ServiceNow, defects are managed through defect records. While executing story-related activities on a Jira board across Development, Testing, and Production environments, which defects must be captured? If a defect is detected, what is the standard procedure to log it in ServiceNow, and in which environment and project stage should it be documented?