SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat(alert-channel-integrations): Jira add `wontFixResolution` UI Option (#12765)
Nikhil Mantribfddd10dc63b
diff --git a/frontend/public/locales/en-GB/channels.json b/frontend/public/locales/en-GB/channels.jsonindex 51595bdd10..d0bf9385f2 100644--- a/frontend/public/locales/en-GB/channels.json+++ b/frontend/public/locales/en-GB/channels.json@@ -56,6 +56,9 @@"help_jira_reopen_transition": "When a resolved alert fires again (within the reopen window), SigNoz moves the issue back out of \"Done\" to an active status via a workflow transition. This is auto-detected — leave it empty unless you want to force a specific one by name (e.g. To Do or Reopen).","placeholder_jira_resolve_transition": "Auto-detected, e.g. Done","placeholder_jira_reopen_transition": "Auto-detected, e.g. To Do",+ "field_jira_wont_fix_resolution": "Won't-fix resolution",+ "help_jira_wont_fix_resolution": "If the issue was resolved with this resolution (e.g. Won't Do), SigNoz won't reopen it when the alert fires again; a new issue is created instead. Leave empty to always reopen.",+ "placeholder_jira_wont_fix_resolution": "e.g. Won't Do","field_jira_reopen_duration": "Reopen window","placeholder_jira_reopen_duration": "e.g. 72h","help_jira_reopen_duration": "If a resolved alert fires again within this window, the same ticket is reopened; after the window, a re-fire opens a new ticket instead. Default: 3d.",diff --git a/frontend/public/locales/en/channels.json b/frontend/public/locales/en/channels.jsonindex ec3b3ce5e3..02b050cbae 100644--- a/frontend/public/locales/en/channels.json+++ b/frontend/public/locales/en/channels.json@@ -56,6 +56,9 @@"help_jira_reopen_transition": "When a resolved alert fires again (within the reopen window), SigNoz moves the issue back out of \"Done\" to an active status via a workflow transition. This is auto-detected — leave it empty unless you want to force a specific one by name (e.g. To Do or Reopen).","placeholder_jira_resolve_transition": "Auto-detected, e.g. Done","placeholder_jira_reopen_transition": "Auto-detected, e.g. To Do",+ "field_jira_wont_fix_resolution": "Won't-fix resolution",+ "help_jira_wont_fix_resolution": "If the issue was resolved with this resolution (e.g. Won't Do), SigNoz won't reopen it when the alert fires again; a new issue is created instead. Leave empty to always reopen.",+ "placeholder_jira_wont_fix_resolution": "e.g. Won't Do","field_jira_reopen_duration": "Reopen window","placeholder_jira_reopen_duration": "e.g. 72h","help_jira_reopen_duration": "If a resolved alert fires again within this window, the same ticket is reopened; after the window, a re-fire opens a new ticket instead. Default: 3d.",diff --git a/frontend/src/container/AllAlertChannels/__tests__/CreateAlertChannel.test.tsx b/frontend/src/container/AllAlertChannels/__tests__/CreateAlertChannel.test.tsxindex 6c57706d67..c9261deec9 100644--- a/frontend/src/container/AllAlertChannels/__tests__/CreateAlertChannel.test.tsx+++ b/frontend/src/container/AllAlertChannels/__tests__/CreateAlertChannel.test.tsx@@ -602,6 +602,11 @@ describe('Create Alert Channel', () => {const user = userEvent.setup({ delay: null });await fillRequired(user, validSite);+ await user.click(screen.getByText('jira_advanced_section'));+ await user.type(+ screen.getByTestId('jira-wont-fix-resolution-textbox'),+ "Won't Do",+ );await user.click(screen.getByTestId('save-channel-button'));@@ -622,6 +627,7 @@ describe('Create Alert Channel', () => {summary: JiraInitialConfig.summary,description: JiraInitialConfig.description,send_resolved: true,+ wont_fix_resolution: "Won't Do",http_config: {basic_auth: { username: '[email protected]', password: 'tok123' },},diff --git a/frontend/src/container/AllAlertChannels/__tests__/EditAlertChannelSave.test.tsx b/frontend/src/container/AllAlertChannels/__tests__/EditAlertChannelSave.test.tsxindex fe05a54a0c..87e2d17394 100644--- a/frontend/src/container/AllAlertChannels/__tests__/EditAlertChannelSave.test.tsx+++ b/frontend/src/container/AllAlertChannels/__tests__/EditAlertChannelSave.test.tsx@@ -90,6 +90,45 @@ describe('EditAlertChannels save', () => {await waitFor(() => expect(edit.calls).toHaveLength(1));});+ it('preserves the jira wont-fix resolution on save', async () => {+ const edit = mockEditChannel();+ render(+ <EditAlertChannels+ channelId="3"+ initialValue={{+ type: 'jira',+ name: 'jira-channel',+ site: 'https://acme.atlassian.net',+ username: '[email protected]',+ password: 'token',+ project: 'OPS',+ issue_type: 'Task',+ send_resolved: true,+ wont_fix_resolution: "Won't Do",+ }}+ />,+ );+ const user = userEvent.setup();+ await user.click(screen.getByTestId('save-channel-button'));++ await waitFor(() => expect(edit.calls).toHaveLength(1));+ expect(edit.calls[0].body).toStrictEqual({+ name: 'jira-channel',+ jira_configs: [+ {+ site: 'https://acme.atlassian.net',+ project: 'OPS',+ issue_type: 'Task',+ send_resolved: true,+ wont_fix_resolution: "Won't Do",+ http_config: {+ basic_auth: { username: '[email protected]', password: 'token' },+ },+ },+ ],+ });+ });+it('sends an incidentio_configs payload when editing an incident.io channel', async () => {const edit = mockEditChannel();render(diff --git a/frontend/src/container/CreateAlertChannels/config.ts b/frontend/src/container/CreateAlertChannels/config.tsindex 67d5e5e6fb..7bb9cd4efe 100644--- a/frontend/src/container/CreateAlertChannels/config.ts+++ b/frontend/src/container/CreateAlertChannels/config.ts@@ -156,6 +156,9 @@ export interface JiraChannel extends Channel {labels?: string[];resolve_transition?: string;reopen_transition?: string;+ // issues resolved with this resolution are never reopened; a refire+ // creates a new issue instead+ wont_fix_resolution?: string;// duration string, e.g. 72h or 3dreopen_duration?: string;}diff --git a/frontend/src/container/CreateAlertChannels/utils.ts b/frontend/src/container/CreateAlertChannels/utils.tsindex f570aa465e..05512836cf 100644--- a/frontend/src/container/CreateAlertChannels/utils.ts+++ b/frontend/src/container/CreateAlertChannels/utils.ts@@ -129,6 +129,9 @@ export const prepareJiraRequest = (if (config.reopen_transition) {jira.reopen_transition = config.reopen_transition;}+ if (config.wont_fix_resolution) {+ jira.wont_fix_resolution = config.wont_fix_resolution;+ }if (config.reopen_duration) {// the generated type models go's model.Duration as a number, the api takes a// duration string like "72h"diff --git a/frontend/src/container/FormAlertChannels/Settings/Jira.tsx b/frontend/src/container/FormAlertChannels/Settings/Jira.tsxindex f011214e40..854b394d8b 100644--- a/frontend/src/container/FormAlertChannels/Settings/Jira.tsx+++ b/frontend/src/container/FormAlertChannels/Settings/Jira.tsx@@ -72,6 +72,20 @@ function JiraSettings({ setSelectedConfig }: JiraProps): JSX.Element {/></Form.Item>+ <Form.Item+ name="wont_fix_resolution"+ label={t('field_jira_wont_fix_resolution')}+ help={t('help_jira_wont_fix_resolution')}+ >+ <Input+ placeholder={t('placeholder_jira_wont_fix_resolution')}+ onChange={(event): void =>+ update({ wont_fix_resolution: event.target.value })+ }+ data-testid="jira-wont-fix-resolution-textbox"+ />+ </Form.Item>+<Form.Itemname="reopen_duration"label={t('field_jira_reopen_duration')}