2024-07-09 14:47:05 +02:00
|
|
|
# Zulip Trello integration
|
2018-09-11 00:45:03 +02:00
|
|
|
|
2018-12-29 12:42:41 +01:00
|
|
|
Get Zulip notifications from your Trello boards!
|
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
!!! tip ""
|
|
|
|
|
|
|
|
[Zapier](./zapier) is usually a simpler way to integrate Trello
|
|
|
|
with Zulip.
|
|
|
|
|
|
|
|
{start_tabs}
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2024-05-05 22:30:09 +02:00
|
|
|
1. {!create-channel.md!}
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2023-09-21 02:23:45 +02:00
|
|
|
1. {!create-an-incoming-webhook.md!}
|
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
1. {!generate-webhook-url-basic.md!}
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
1. **Log in to Trello**, and collect the following:
|
2018-03-29 18:04:18 +02:00
|
|
|
|
|
|
|
* **Board ID**: Go to your Trello board. The URL should look like
|
|
|
|
`https://trello.com/b/<BOARD_ID>/<BOARD_NAME>`. Note down the
|
|
|
|
`<BOARD_ID>`.
|
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
* **API Key**: Go to <https://trello.com/1/appkey/generate>. Note down
|
|
|
|
the key listed under **Developer API Keys**.
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
* **User Token**: Under **Developer API Keys**, click on the **Token**
|
|
|
|
link, and click **Allow**. Note down the token generated.
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
1. You're now going to need to run a Trello configuration script from a
|
2018-09-27 18:13:21 +02:00
|
|
|
computer (any computer) connected to the internet. It won't make any
|
|
|
|
changes to the computer.
|
2018-09-21 20:21:07 +02:00
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
Make sure you have a working copy of Python. If you're running
|
2018-09-21 20:21:07 +02:00
|
|
|
macOS or Linux, you very likely already do. If you're running
|
|
|
|
Windows you may or may not. If you don't have Python, follow the
|
2024-07-09 14:47:05 +02:00
|
|
|
installation instructions [here][1].
|
|
|
|
|
|
|
|
!!! tip ""
|
|
|
|
|
|
|
|
You do not need the latest version of Python; anything 2.7 or
|
|
|
|
higher will do.
|
|
|
|
|
|
|
|
1. Download [zulip-trello.py][2].
|
2018-09-21 20:21:07 +02:00
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
!!! tip ""
|
2018-09-11 00:45:03 +02:00
|
|
|
|
2024-07-18 03:48:23 +02:00
|
|
|
<kbd>Ctrl</kbd> + <kbd>s</kbd> or <kbd>Cmd</kbd> + <kbd>s</kbd>
|
|
|
|
on that page should work in most browsers.
|
2024-07-09 14:47:05 +02:00
|
|
|
|
|
|
|
1. Run the `zulip-trello` script in a terminal, after replacing the all
|
|
|
|
caps arguments with the values collected above and the generated URL
|
|
|
|
above.
|
2018-03-29 18:04:18 +02:00
|
|
|
|
|
|
|
```
|
2019-09-19 02:19:15 +02:00
|
|
|
python zulip_trello.py --trello-board-name TRELLO_BOARD_NAME \
|
|
|
|
--trello-board-id TRELLO_BOARD_ID \
|
|
|
|
--trello-api-key TRELLO_API_KEY \
|
|
|
|
--trello-token TRELLO_TOKEN \
|
2024-07-09 14:47:05 +02:00
|
|
|
--zulip-webhook-url "GENERATED_WEBHOOK_URL"
|
2018-03-29 18:04:18 +02:00
|
|
|
```
|
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
!!! warn ""
|
|
|
|
|
|
|
|
**Note**: Make sure that you wrap the webhook URL generated above
|
|
|
|
in quotes when supplying it on the command-line, as shown above.
|
2019-02-21 22:19:20 +01:00
|
|
|
|
2018-09-14 22:46:20 +02:00
|
|
|
The `zulip_trello.py` script only needs to be run once, and can be run
|
|
|
|
on any computer with python.
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2018-09-14 22:46:20 +02:00
|
|
|
1. You can delete `zulip_trello.py` from your computer if you'd like.
|
2018-03-29 18:04:18 +02:00
|
|
|
|
2024-07-09 14:47:05 +02:00
|
|
|
{end_tabs}
|
2018-03-29 18:04:18 +02:00
|
|
|
|
|
|
|
{!congrats.md!}
|
2017-04-04 10:20:31 +02:00
|
|
|
|
|
|
|
![](/static/images/integrations/trello/001.png)
|
2024-07-09 14:47:05 +02:00
|
|
|
|
|
|
|
### Related documentation
|
|
|
|
|
|
|
|
{!webhooks-url-specification.md!}
|
|
|
|
|
|
|
|
[1]: https://realpython.com/installing-python/
|
|
|
|
[2]: https://raw.githubusercontent.com/zulip/python-zulip-api/main/zulip/integrations/trello/zulip_trello.py
|