diff --git a/app/javascript/dashboard/routes/dashboard/settings/automation/constants.js b/app/javascript/dashboard/routes/dashboard/settings/automation/constants.js index 1f341480970f..c3a0ffedef4d 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/automation/constants.js +++ b/app/javascript/dashboard/routes/dashboard/settings/automation/constants.js @@ -21,6 +21,13 @@ export const AUTOMATIONS = { inputType: 'plain_text', filterOperators: OPERATOR_TYPES_2, }, + { + key: 'email', + name: 'Email', + attributeI18nKey: 'EMAIL', + inputType: 'plain_text', + filterOperators: OPERATOR_TYPES_2, + }, { key: 'inbox_id', name: 'Inbox', @@ -125,6 +132,13 @@ export const AUTOMATIONS = { inputType: 'plain_text', filterOperators: OPERATOR_TYPES_2, }, + { + key: 'email', + name: 'Email', + attributeI18nKey: 'EMAIL', + inputType: 'plain_text', + filterOperators: OPERATOR_TYPES_2, + }, { key: 'inbox_id', name: 'Inbox', @@ -242,6 +256,13 @@ export const AUTOMATIONS = { inputType: 'search_select', filterOperators: OPERATOR_TYPES_3, }, + { + key: 'email', + name: 'Email', + attributeI18nKey: 'EMAIL', + inputType: 'plain_text', + filterOperators: OPERATOR_TYPES_2, + }, { key: 'inbox_id', name: 'Inbox', @@ -317,6 +338,13 @@ export const AUTOMATIONS = { inputType: 'search_select', filterOperators: OPERATOR_TYPES_1, }, + { + key: 'email', + name: 'Email', + attributeI18nKey: 'EMAIL', + inputType: 'plain_text', + filterOperators: OPERATOR_TYPES_2, + }, { key: 'mail_subject', name: 'Email Subject', diff --git a/lib/automation_rules/conditions.json b/lib/automation_rules/conditions.json index 566a35de2928..954d57470ed3 100644 --- a/lib/automation_rules/conditions.json +++ b/lib/automation_rules/conditions.json @@ -156,6 +156,13 @@ "filter_operators": [ "equal_to", "not_equal_to", "contains", "does_not_contain" ], "attribute_type": "additional_attributes" }, + "email": { + "attribute_name": "Email", + "input_type": "textbox", + "data_type": "text", + "filter_operators": [ "equal_to", "not_equal_to", "contains", "does_not_contain" ], + "attribute_type": "standard" + }, "country_code": { "attribute_name": "Country Name", "input_type": "textbox",