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

# src appsec defect set-status

Move defect groups to a new status.

'src appsec defect <id>' shows the statuses that group can move to. Groups
already in the target status are skipped; a single disallowed transition
rejects the whole batch.

## Usage

`src appsec defect set-status <id>... --status <status> [flags]`

### Examples

**Mark a finding as a false positive**

`src appsec defect set-status 42 --status RESOLVED_FP`

**Triage several findings at once, with a comment**

`src appsec defect set-status 42 43 44 --status RESOLVED_TOLERABLE --comment "accepted risk"`

### Flags

| Flag | Description |
| --- | --- |
| `--status string` | New status, e.g. RESOLVED_FP |
| `--comment string` | Comment attached to every status change |

### 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 set-status <subcommand> --help` for more information about a command.
