Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integration: Update Zendesk Documentation.

Adam Birds25658153ca73
diff --git a/zerver/webhooks/zendesk/doc.md b/zerver/webhooks/zendesk/doc.md
index 6c962811c47..c4973af7fb0 100644
--- a/zerver/webhooks/zendesk/doc.md
+++ b/zerver/webhooks/zendesk/doc.md
@@ -1,73 +1,70 @@
-{!create-stream.md!}
+1. {!create-stream.md!}
-Next, on your {{ settings_html|safe }}, create a bot.
+1. Next, on your {{ settings_html|safe }}, create a bot.
-Construct a webhook URL like the following:
+1. Construct a webhook URL like the following:
-`{{ api_url }}/v1/external/zendesk?ticket_title={% raw %}{{ ticket.title }}&ticket_id={{ ticket.id }}{% endraw %}`
+ `{{ api_url }}/v1/external/zendesk?ticket_title={% raw %}{{ ticket.title }}&ticket_id={{ ticket.id }}{% endraw %}`
-{!append-stream-name.md!}
+1. {!append-stream-name.md!}
-Next, in Zendesk, open your **Admin** view via gear in the bottom-left
-corner. In the **Admin** view, click on **Extensions**, then click
-**add target**.
+1. Next, in Zendesk, open your **Admin** view via gear in the bottom-left
+ corner. In the **Admin** view, click on **Extensions**, then click
+ **add target**.
-![](/static/images/integrations/zendesk/001.png)
-![](/static/images/integrations/zendesk/002.png)
+ ![](/static/images/integrations/zendesk/001.png)
+ ![](/static/images/integrations/zendesk/002.png)
-From there, click **URL target**. Fill in the form like this:
+1. From there, click **URL target**. Fill in the form like this:
-* **Title**: Zulip
-* **URL**: the URL we created above
-* **Method**: POST
-* **Attribute Name**: message
-* **Username**: *your bot's user name, e.g.* `[email protected]`
-* **Password**: *your bot's API key*
+ * **Title**: Zulip
+ * **URL**: the URL we created above
+ * **Method**: POST
+ * **Attribute Name**: message
+ * **Username**: *your bot's user name, e.g.* `[email protected]`
+ * **Password**: *your bot's API key*
-![](/static/images/integrations/zendesk/003.png)
+ ![](/static/images/integrations/zendesk/003.png)
-Now, select **Test Target** and click **Submit**. A test message should
-appear in the `zendesk` stream. If the message was received, save the
-target by selecting **Create target** and clicking **Submit**.
+1. Now, select **Test Target** and click **Submit**. A test message should
+ appear in the `zendesk` stream. If the message was received, save the
+ target by selecting **Create target** and clicking **Submit**.
-From here, add a new trigger. You'll do this for every action you want
-to create a Zulip notification for. Triggers are added by selecting
-**Triggers** in the left menu and then clicking **add trigger** in the
-top right.
+1. From here, add a new trigger. You'll do this for every action you want
+ to create a Zulip notification for. Triggers are added by selecting
+ **Triggers** in the left menu and then clicking **add trigger** in the
+ top right.
-![](/static/images/integrations/zendesk/004.png)
-![](/static/images/integrations/zendesk/005.png)
+ ![](/static/images/integrations/zendesk/004.png)
+ ![](/static/images/integrations/zendesk/005.png)
-Let's say you want a notification each time a ticket is updated. Put
-in a descriptive title like "Announce ticket update". Under **Meet all of
-the following conditions** select **Ticket: is...** and then select
-**Updated**. In the **Perform these actions** section, select
-**Notification: Notify target**, then select **Zulip**.
+1. Let's say you want a notification each time a ticket is updated. Put
+ in a descriptive title like "Announce ticket update". Under **Meet all of
+ the following conditions** select **Ticket: is...** and then select
+ **Updated**. In the **Perform these actions** section, select
+ **Notification: Notify target**, then select **Zulip**.
-Next we need need to enter the message body into Message. You can use
-Zulip Markdown and the Zendesk placeholders when creating your message.
+1. Next we need need to enter the message body into Message. You can use
+ Zulip Markdown and the Zendesk placeholders when creating your message.
-You can copy this example template:
+ You can copy this example template:
-{% raw %}
-~~~
-Ticket [#{{ ticket.id }}: {{ ticket.title }}]({{ ticket.link }}), was updated by {{ current_user.name }}
+ {% raw %}
+ Ticket [#{{ ticket.id }}: {{ ticket.title }}]({{ ticket.link }}), was updated by {{ current_user.name }}
+ * Status: {{ ticket.status }}
+ * Priority: {{ ticket.priority }}
+ * Type: {{ ticket.ticket_type }}
+ * Assignee: {{ ticket.assignee.name }}
+ * Tags: {{ ticket.tags }}
+ * Description:
+ ``` quote
+ {{ ticket.description }}
+ ```
+ {% endraw %}
-* Status: {{ ticket.status }}
-* Priority: {{ ticket.priority }}
-* Type: {{ ticket.ticket_type }}
-* Assignee: {{ ticket.assignee.name }}
-* Tags: {{ ticket.tags }}
-* Description:
-``` quote
-{{ ticket.description }}
-```
-~~~
-{% endraw %}
+ ![](/static/images/integrations/zendesk/006.png)
-![](/static/images/integrations/zendesk/006.png)
-
-Finally, click **Submit**.
+1. Finally, click **Submit**.
{!congrats.md!}