From f0c693526ca5c3dc7c6f77ecf496d4797075d497 Mon Sep 17 00:00:00 2001 From: Utkarsh Raj Date: Mon, 11 Nov 2024 14:27:54 +0100 Subject: [PATCH] support docs changes --- docs/resources/automation.md | 15 ++++++++++----- docs/resources/macros.md | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 docs/resources/macros.md diff --git a/docs/resources/automation.md b/docs/resources/automation.md index d9a0e30a..ff4a1ea9 100644 --- a/docs/resources/automation.md +++ b/docs/resources/automation.md @@ -36,10 +36,16 @@ resource "zendesk_automation" "auto-close-automation" { field = "status" value = "closed" } + + action { + field = "side_conversation" + value = jsonencode(["

this is the email body

", "text/html"]) + } } ``` + ## Schema ### Required @@ -56,15 +62,16 @@ resource "zendesk_automation" "auto-close-automation" { - `position` (Number) The position of the automation which specifies the order it will be executed. + ### Nested Schema for `action` Required: - `field` (String) The name of a ticket field to modify. -- `value` (String) The new value of the field. - +- `value` (String) The new value of the field. Can be jsonencode'ed list + ### Nested Schema for `all` Required: @@ -73,8 +80,8 @@ Required: - `operator` (String) A comparison operator. - `value` (String) The value of a ticket field. - + ### Nested Schema for `any` Required: @@ -82,5 +89,3 @@ Required: - `field` (String) The name of a ticket field. - `operator` (String) A comparison operator. - `value` (String) The value of a ticket field. - - diff --git a/docs/resources/macros.md b/docs/resources/macros.md new file mode 100644 index 00000000..bd6a4358 --- /dev/null +++ b/docs/resources/macros.md @@ -0,0 +1,19 @@ +```terraform + +resource "zendesk_macro" "test_macro" { + title = "Macro Title" + description = "Macro description add something" + action { + field = "subject" + value = "subject here" + } + action { + field = "status" + value = "solved" + } + action { + field = "side_conversation" + value = jsonencode(["this is the subject", "

this is the email body

", "text/html"]) + } +} +```