DocsSecurity & ComplianceFinding Assignment & Comments

Finding Assignment & Comments

Give every security finding an assignee, see the team that owns its asset, filter the queue on "My findings" and discuss a finding with comments recorded in its timeline.


Overview

A finding has an optional assignee: the user who has to deal with it. Its owner team is not stored on the finding: it is the team of the affected asset (the asset team_ref), so moving an asset to another team moves its findings too. Both are shown in the "Ownership" card of the finding detail (/dashboard/security/findings/<id>) and the assignee in the "Assignee" column of the findings queue ("Unassigned" when empty).

  • Assigning is open to managers and admins, in any status (open, acknowledged, resolved, false positive or risk accepted); viewers see the assignee but not the Assign button
  • Every user, viewers included, can comment on a finding from its timeline
  • Assignments and comments are timeline events: they cannot be edited or deleted
Finding detail with priority score explanation, ownership and timeline

Assigning a Finding

In the finding detail, "Assign" opens a dialog that lists the active users (search by username, first or last name) plus "Unassigned", with an optional reason (at most 2000 characters). Choosing the current assignee changes nothing: the confirm button stays disabled and the API answers 200 without recording an event. Every real change writes an assigned event, in the same transaction, with the user who assigned, the reason and metadata from_assignee, from_assignee_username, to_assignee and to_assignee_username (null and "" when unassigned). The usernames are kept in the event, so the timeline stays readable ("alice → bob") even after a user is deleted; the assignee of the finding then becomes empty. The priority does not depend on the assignee and is not recomputed.

  • Many findings can be assigned at once from the selection bar of the queue: see Bulk Finding Actions (/docs/security/bulk-actions). Findings already assigned to the chosen user are skipped with cause already_assigned

My Findings

The "Assignee" select of the queue offers Anyone, "Assigned to me" and "Unassigned". The choice is kept in the URL (assignee=me or assignee=none), shown as a chip and restored by Back and Forward, so a "My findings" view can be bookmarked. The API also accepts a user id (assignee=42); any other value returns 400. The same parameter works in the filter of a bulk action, where me is the user running the action.

Comments

The timeline card has an "Add a comment" form: the "Comment" button stays disabled while the text is blank, and the field is cleared once the comment is saved. A comment is a commented event, with the author, the text (trimmed, at most 5000 characters) and the date, shown in the timeline like any other event. There are no mentions or notifications.

Note: Comments are append-only like the rest of the timeline: no API edits or deletes them.

API

GET /api/v1/security/findings/ and the detail return assignee (user id or null), assignee_username (or null) and owner_team ({id, name} or null). POST /api/v1/security/findings/<id>/assign/ (manager or admin) takes {"assignee": <id> | null, "reason": "..."}: the assignee key is required, an unknown or inactive user returns 400 on assignee, and the response is the finding detail. POST /api/v1/security/findings/<id>/comments/ (any authenticated user) takes {"body": "..."} and returns 201 with the new event; a blank, non-string or too long body returns 400 on body. GET /api/v1/security/assignees/ (manager or admin) lists the active users as id, username and full_name (never the email), ordered by username, paginated, with ?search=.

# Assign finding 42 to user 7
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"assignee": 7, "reason": "Owner of the web tier"}' \
  "https://idp.example.com/api/v1/security/findings/42/assign/"

# My findings
curl -H "Authorization: Bearer $TOKEN" "https://idp.example.com/api/v1/security/findings/?assignee=me"

# Comment
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"body": "Checked with the app team: patch planned on Friday"}' \
  "https://idp.example.com/api/v1/security/findings/42/comments/"

Example Event

An assigned event of the timeline (GET /api/v1/security/findings/<id>/events/):

{
  "event": "assigned", "actor_type": "user", "actor": "manager",
  "from_status": "", "to_status": "", "reason": "",
  "metadata": {"from_assignee": null, "from_assignee_username": "", "to_assignee": 7, "to_assignee_username": "bob"}
}