getsentry / getsentry/sentry

"Sending notification to the issue assignee" action when creating an issue alert

Open
#54,751 14 comments 11 reactions 0 assignees View on GitHub
Feature Feature: Alert Rule Product Area: Alerts
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
1d 5h
Merged PRs (30d)
624

Description

### Problem Statement

Currently, when setting up an issue alert, one of the available actions is to "Notify Suggested Assignees, Team, or Member." Opting to "Notify Suggested Assignees" prompts Sentry to alert all suggested assignees related to a specific issue that prompted the alert. However, this approach can lead to unnecessary notifications for teams merely suggested as assignees, rather than the actual assignee. This situation is particularly pronounced for errors originating from mobile applications, as they often contain numerous stacktrace items, increasing the likelihood of multiple suggested assignees.

Imagine a scenario where a new or existing issue triggers an alert with the aforementioned action. Teams A, B, and C receive notifications due to being suggested as possible assignees for the issue. After deliberation, the teams collectively determine that team B should take ownership of the issue, marking them as the issue assignee through the Sentry dashboard. Despite this assignment, both team A and team B continue to receive alerts whenever the issue triggers the alert.

### Solution Brainstorm

### Add another option for this action, like "Send notification to Assignee"
If a specific issue is assigned to a particular team or member, as indicated on the issue details page, Sentry will send a notification to that designated team or member. Alternatively, if the issue has no final assignee like this → ![Screenshot 2023-08-15 at 09 57 40](https://github.com/getsentry/sentry/assets/1960884/5cbae8c8-d6be-40ad-a423-eec21883efc7), we have the option to send notifications to "Suggested Assignees," "Recently Active Members," "All Project Members," or opt for "No One" as a fallback strategy.

![Screenshot 2023-08-15 at 09 44 45](https://github.com/getsentry/sentry/assets/1960884/c862f069-3298-4c89-81d3-1461d04f45c1)

### Product Area

Alerts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.