Review Workflow
Use a review when a test case needs another person’s approval before it is ready.
Open Test Cases, choose a case, and open its Review tab. Submit the case,
invite a reviewer, and follow comments and decisions in one place.
About URLs in examples: all examples use
localhost:5770as the default Mockarty address. If your instance runs on a remote server, replacelocalhost:5770with its actual address. See Tips & Useful Features for details.
Related pages: Test Case Management · Notification Channels · Webhooks & Callbacks
Concepts
- Case under review — a saved test case with a review state:
draft,in_review,changes_requested,approved,rejected, orarchived. Submitting records the case version being reviewed. - Reviewer — a person who can approve, request changes, or reject. A reviewer may be required, optional, or an observer who follows the discussion without blocking the decision.
- Comment — a discussion note, which may be anchored to a particular step or field. Comments can be replied to in a thread and resolved when handled.
- Timeline — the record of submissions, reviewer changes, comments, and decisions.
Default policy
- One required approval completes the review.
- The person who submitted the case cannot approve it themselves. An administrator
can allow self-approval in Settings → Test cases & tasks with
Let case authors approve their own review. - A reviewer can request changes or reject the case. After you revise and resubmit,
reviewers vote on the new version. Earlier comments remain visible.
The required reviewers and review state are visible on the case’s Review tab.
API surface
All paths below are relative to your namespace API root,
api/v1/namespaces/{namespace} — for example,
GET /review/subjects?kind=tcm_case&status=in_review.
| Method | Path | Purpose |
|---|---|---|
GET |
/review/subjects |
List subjects, filtered by kind, status and assignedTo. |
GET |
/review/subjects/entity/:kind/:subjectId |
Get the current subject for a target entity (lookup by owning kind + id). |
POST |
/review/subjects/entity/:kind/:subjectId/submit |
Transition from draft → in_review. Body may list reviewers (userId, role). |
POST |
/review/subjects/:id/withdraw |
Submitter-only: take the subject back to draft. |
GET |
/review/subjects/:id/reviewers |
List the assigned reviewers and their votes. |
POST |
/review/subjects/:id/reviewers |
Assign a reviewer: {userId, role} — required, optional or observer. |
DELETE |
/review/subjects/:id/reviewers/:userId |
Remove a reviewer. |
GET |
/review/subjects/:id/comments |
List comments (threaded; onlyOpen=true for unresolved only). |
POST |
/review/subjects/:id/comments |
Add a comment. Body: {body, format, anchorPath, anchorRev, parentId}. |
PATCH |
/review/subjects/:id/comments/:commentId |
Edit the text of your own comment ({body}). |
DELETE |
/review/subjects/:id/comments/:commentId |
Delete your own comment. |
POST |
/review/subjects/:id/comments/:commentId/resolve |
Flip a comment’s resolved flag. |
POST |
/review/subjects/:id/approve |
Reviewer votes approve. Optional {note}. |
POST |
/review/subjects/:id/request-changes |
Reviewer votes request changes. Optional {note}. |
POST |
/review/subjects/:id/reject |
Reviewer votes reject. Optional {note}. |
POST |
/review/subjects/:id/archive |
Move to archived (terminal). |
GET |
/review/subjects/:id/events |
Timeline (?limit=). |
UI integration
In Test Cases, select a case and open Review. The tab shows the current
state, reviewers, comments, and decisions. Available actions depend on your
permissions; decisions made by another reviewer appear without a reload.
Events & notifications
Review transitions are delivered through the outbound webhook bus and notification
channels:
review.submitted,review.withdrawnreview.reviewer_added,review.reviewer_removedreview.commentedreview.approved,review.changes_requested,review.rejectedreview.archived
Relevant people also get an in-app notification when they are assigned as a
reviewer, and the submitter is notified of the decision. Subscribe to the webhook
events in Settings → Callbacks (HTTP / Kafka / RabbitMQ) or bind Slack /
Telegram / email channels in Settings → My Channels. The payload carries
{namespace, kind, subjectId, actor, snapshot} plus the transition-specific
fields (note, reason, userId, role).
Resolving or editing a comment is recorded in the case timeline and the audit
trail, but does not send a separate webhook event.
RBAC
review:view— implied by namespace read.review:submit— required to submit a case and to withdraw it.review:comment— required for adding, editing, deleting and resolving comments.review:review— required for the vote endpoints (approve,request-changes,reject).review:manage_reviewers— required to assign and remove reviewers.review:archive— required to archive a subject.
All actions are audited: verbs review_submitted, review_withdrawn,
review_reviewer_assigned, review_reviewer_removed, review_commented,
review_comment_updated, review_comment_deleted, review_comment_resolved,
review_approved, review_changes_requested, review_rejected, review_archived.