---
metadata:
  - name: generator
    content: Diplodoc Platform v5.61.1
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src-appsec-defect-comment.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src-appsec-defect-comment.md
  - href: https://sourcecraft.dev/portal/docs/ru/cli-ref/src-appsec-defect-comment.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/ru/llms.txt
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/ru/llms.txt

# src appsec defect comment

Show what happened to a defect group: comments, status changes, AI events and

the record of its creation.

Editing and deleting take the activity uuid this command lists, and only work on
your own comments. Deleted comments are left out.

## Usage

`src appsec defect comment [<id>] [flags]`

### Available commands

| Command | Description |
| --- | --- |
| [add](src-appsec-defect-comment-add.md) | Add a comment to a defect group |
| [delete](src-appsec-defect-comment-delete.md) | Delete your comment on a defect group |
| [edit](src-appsec-defect-comment-edit.md) | Edit your comment on a defect group |

### Examples

**Read the comments on defect group #42**

`src appsec defect comment 42`

**Leave a triage note**

`src appsec defect comment add 42 --body "looks like a false positive"`

### Flags

| Flag | Description |
| --- | --- |
| `-L, --limit int` | Maximum number of items to return (default "30") |

### Inherited flags

| Flag | Description |
| --- | --- |
| `--env string` | Override Sourcecraft environment (use 'src envs' to list available) |
| `--json string` | Output JSON, optionally filtered (--json or --json=field1,field2) |
| `--json-compact string` | Output compact JSON, optionally filtered |
| `-R, --repo string` | Select another repository using OWNER/REPO format |
| `-V, --verbose` | Enable debug logging output |

### Learn more

Use `src appsec defect comment <subcommand> --help` for more information about a command.
