Skip to content

Commit

Permalink
Merge pull request #5 from clearnote01/refactor-client-extension
Browse files Browse the repository at this point in the history
support docs changes
  • Loading branch information
clearnote01 authored Nov 11, 2024
2 parents 5bc12f2 + f0c6935 commit 745208b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/resources/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ resource "zendesk_automation" "auto-close-automation" {
field = "status"
value = "closed"
}
action {
field = "side_conversation"
value = jsonencode(["<p>this is the email body</p>", "text/html"])
}
}
```

<!-- schema generated by tfplugindocs -->

## Schema

### Required
Expand All @@ -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.

<a id="nestedblock--action"></a>

### 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

<a id="nestedblock--all"></a>

### Nested Schema for `all`

Required:
Expand All @@ -73,14 +80,12 @@ Required:
- `operator` (String) A comparison operator.
- `value` (String) The value of a ticket field.


<a id="nestedblock--any"></a>

### Nested Schema for `any`

Required:

- `field` (String) The name of a ticket field.
- `operator` (String) A comparison operator.
- `value` (String) The value of a ticket field.


19 changes: 19 additions & 0 deletions docs/resources/macros.md
Original file line number Diff line number Diff line change
@@ -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", "<p>this is the email body</p>", "text/html"])
}
}
```

0 comments on commit 745208b

Please sign in to comment.