Issue Ownership & Assignment
Automatically route errors to the right team using ownership rules, CODEOWNERS files, and suggested assignees.
Issue Ownership & Assignment
JustAnalytics automatically routes errors to the right person using three complementary systems: ownership rules, CODEOWNERS file support, and AI-suggested assignees.
Ownership Rules#
Ownership rules match error properties against glob patterns to auto-assign errors to specific team members.
Rule Types#
Path Rules — Match against the file path in the error stack trace:
src/payments/**/*.ts → payments-team@company.com
src/api/auth/** → security@company.com
URL Rules — Match against the page URL where the error occurred:
/checkout/* → checkout-team@company.com
/api/v2/** → api-team@company.com
Tag Rules — Match against error tags (key:value format):
service:payments → payments-lead@company.com
environment:production → oncall@company.com
Creating Ownership Rules#
- Navigate to your Site Settings page
- Scroll to Ownership Rules section
- Click Add Rule
- Select match type (Path, URL, or Tag)
- Enter the glob pattern
- Enter the owner email address
- Toggle Active to enable
Rule Priority#
Rules are evaluated in priority order (top to bottom). The first matching rule wins. Drag rules up/down to reorder priority.
How Auto-Assignment Works#
When a new error group is created (first occurrence), JustAnalytics:
- Extracts the filename, URL, and tags from the error
- Evaluates ownership rules in priority order
- Sets assignedTo on the error group to the first matching owner
- The assignment appears immediately in the error list and detail page
Rules are cached for 60 seconds for performance.
CODEOWNERS File Support#
If your repository uses a .github/CODEOWNERS file, JustAnalytics can parse it to suggest assignees based on stack trace file paths.
Uploading CODEOWNERS#
- Go to Site Settings > Code Owners section
- Paste the file contents or upload the file
- JustAnalytics parses and validates the entries
CODEOWNERS Format#
# Default owner
* @default-team
# Frontend
src/components/** @frontend-team
src/pages/** @frontend-team
# Backend API
src/api/** @backend-team @api-lead
# Database
src/db/** @dba-team
migrations/** @dba-team
Last-Match-Wins Semantics#
Following the CODEOWNERS specification, the last matching pattern takes precedence. This allows broad defaults at the top and specific overrides below.
Suggested Assignees#
When viewing an error detail page, JustAnalytics suggests an assignee based on:
- CODEOWNERS — Checked first, stack trace file paths matched against entries
- Ownership Rules — Fallback if no CODEOWNERS match
- No suggestion — If neither system finds a match
The suggestion appears as a chip below the assignee field with a one-click Assign button.
Issue Linking#
Link error groups to external trackers for bidirectional status sync:
- GitHub Issues — Auto-detected from github.com URLs
- Jira — Auto-detected from atlassian.net URLs
- Linear — Auto-detected from linear.app URLs
- Other — Any URL can be linked manually
When the linked external issue is closed, JustAnalytics automatically resolves the error group via webhook sync.
Best Practices#
- Start with broad ownership rules, then add specific ones
- Upload CODEOWNERS if your repo uses it for the most accurate suggestions
- Combine both systems — CODEOWNERS for file-level, rules for URL/tag patterns
- Use tag rules for services — route server-side errors by service name
- Review auto-assignments periodically as code evolves
Next Steps#
- Issue Merging — Merge duplicate error groups
- Regression Detection — Auto-reopen resolved issues
- Escalation Policies — Escalate unacknowledged alerts