diff --git a/static/app/types/workflowEngine/dataConditions.tsx b/static/app/types/workflowEngine/dataConditions.tsx index 783e19aa3a57dc..6bfa2cf9422cb5 100644 --- a/static/app/types/workflowEngine/dataConditions.tsx +++ b/static/app/types/workflowEngine/dataConditions.tsx @@ -31,6 +31,7 @@ export enum DataConditionType { NEW_HIGH_PRIORITY_ISSUE = 'new_high_priority_issue', REGRESSION_EVENT = 'regression_event', REAPPEARED_EVENT = 'reappeared_event', + ISSUE_RESOLVED_TRIGGER = 'issue_resolved_trigger', TAGGED_EVENT = 'tagged_event', ISSUE_PRIORITY_EQUALS = 'issue_priority_equals', ISSUE_PRIORITY_GREATER_OR_EQUAL = 'issue_priority_greater_or_equal', diff --git a/static/app/views/automations/components/automationBuilderContext.tsx b/static/app/views/automations/components/automationBuilderContext.tsx index 5f07b9addd4b2e..acc13cb5fb169b 100644 --- a/static/app/views/automations/components/automationBuilderContext.tsx +++ b/static/app/views/automations/components/automationBuilderContext.tsx @@ -191,6 +191,7 @@ const initialAutomationBuilderState: AutomationBuilderState = { logicType: DataConditionGroupLogicType.ANY_SHORT_CIRCUIT, conditions: [ createWhenCondition(DataConditionType.FIRST_SEEN_EVENT), + createWhenCondition(DataConditionType.ISSUE_RESOLVED_TRIGGER), createWhenCondition(DataConditionType.REAPPEARED_EVENT), createWhenCondition(DataConditionType.REGRESSION_EVENT), ], diff --git a/static/app/views/automations/components/dataConditionNodes.tsx b/static/app/views/automations/components/dataConditionNodes.tsx index 7ba16480825802..dad202e3ff46b8 100644 --- a/static/app/views/automations/components/dataConditionNodes.tsx +++ b/static/app/views/automations/components/dataConditionNodes.tsx @@ -123,6 +123,13 @@ export const dataConditionNodesMap = new Map([ DataConditionType.FIRST_SEEN_EVENT, + DataConditionType.ISSUE_RESOLVED_TRIGGER, DataConditionType.REGRESSION_EVENT, DataConditionType.REAPPEARED_EVENT, ]); diff --git a/static/app/views/automations/new.spec.tsx b/static/app/views/automations/new.spec.tsx index e2bf4eb6a71105..3a1f42f0e47e9a 100644 --- a/static/app/views/automations/new.spec.tsx +++ b/static/app/views/automations/new.spec.tsx @@ -158,6 +158,7 @@ describe('AutomationNewSettings', () => { logicType: 'any-short', conditions: [ {type: 'first_seen_event', comparison: true, conditionResult: true}, + {type: 'issue_resolved_trigger', comparison: true, conditionResult: true}, {type: 'reappeared_event', comparison: true, conditionResult: true}, {type: 'regression_event', comparison: true, conditionResult: true}, ],