getsentry / getsentry/sentry

Generic issue metadata support in issue alert actions

Open
#73,322 4 comments 2 reactions 0 assignees View on GitHub
Feature Product Area: Settings - Integrations Sync: Jira Waiting for: Product Owner
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Problem Statement

I have an issue alert which covers many different groups of errors. For example, I could have an alert that covers all of my environments. Or an alert that covers multiple browsers, or user operating systems, or a custom tag.

I want my alert to be able to include this information in the actions it generates, so that I can have more information automatically included without needing a manual process. For example, I'd like to add a label to Jira tickets that get created based on a custom tag of the issue that triggered the alert.

#48851 has a related use-case around customizing tickets, although it's more focused on controlling currently unconfigurable aspects of the Jira integration (such as the title or description) via templates, while this issue is more about adding some templating support to the already-configurable fields of actions in general (including Jira).

### Solution Brainstorm

The Slack integration already has this support via the “and show tags” field (note that it lets you specify default fields as well, not only custom tags), which gets included in the slack message
![Alert configuration](https://github.com/getsentry/sentry/assets/5422417/1e88076f-4f63-466d-8cb5-639b312b1d06)
![Slack message output](https://github.com/getsentry/sentry/assets/5422417/51c9c5ec-e800-4fb6-b89a-59b8be40b179)

It seems this could be accomplished in all integrations via string templating support, for example allowing to use `{{level}}` or `{{tags.my_custom_tag}}`. This could, for example, allow the Jira integration to use the level, or custom tags, to set labels for the ticket. Or allow customization of github issue creation labels, or any other integration that has string inputs.

### Product Area

Alerts

┆Issue is synchronized with this [Jira Improvement](https://getsentry.atlassian.net/browse/FEEDBACK-2213) by [Unito](https://www.unito.io)

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.