Trello
To create cards in Trello for Squadcast Incidents with the help of Outgoing Webhooks
Last updated
To create cards in Trello for Squadcast Incidents with the help of Outgoing Webhooks
Last updated
Follow the below steps to configure the “Trello - Create Card” action via webhooks.
You will be utilizing Trello's Rest APIs to create cards.
For generating an API key and Token, you first need to have created a Trello Power-Up.
Login to https://trello.com/power-ups/admin -> New
Fill all the required fields -> Create
Navigate to API Key -> Generate a new API Key -> Copy the API Key
On the same page where you found your API key, click the hyperlinked Token at the right of the API key. You will see the following page and Copy the Token
You need to have the ID of the list in which you are going to create cards
Here we have used Postman to generate the List ID
Log in to Trello and copy your Workspace ID from the browser URL
Paste the below cURL in Postman
Paste the API Key and Token in the Params section and replace {id} with your workspace id in the URL and click on Send to get the Lists
Copy the List ID in which you would like to create cards
Navigate to Settings -> Webhooks.
Click Add Webhook. On the next screen, you will be guided through three steps. Navigate between these steps by clicking on any of the steps on the top bar.
Add Webhook Details:
Webhook Name: Enter the webhook name as Trello - Create Card.
Webhook Description (optional): Enter an optional description. For example - This webhook is for ticket creation in Freshservice for Squadcast Incidents.
Failure Notification Email (optional): Enter an email where you want to receive failure notifications. This is particularly helpful when you (or an administrator) want to be notified of webhook-related failures.
URL: Copy and paste the below API.
Note:
Under Additional headers, Content-Type: application/JSON is added by default.
Click Next: Choose Webhook Type, and navigate to the next step.
Choose Webhook Type: Choose Webhook type (Manual or Automatic) and add configurations.
Manual Webhook: Manually trigger Webhooks under incidents, on demand. Under Manual Webhook, select the teams that are authorized to access the Webhook. You can select All Teams or enter specific Teams, from the drop-down.
Note:
Select this option only if you want to create Trello cards manually on-demand. If you want a card, created automatically when certain conditions are met, please choose Automatic webhooks.
Automatic Webhook: Automatically trigger Webhooks when the configured conditions match. To set up Automatic Webhook Configurations:
Versions: Select v2
Triggers: Select the following Trigger events (conditions) for which the Webhook will be triggered:
Incident Triggered (This will create a Trello card whenever a new incident gets triggered in Squadcast)
Filters: You can apply filters on top of events, based on Teams, Services, Alert Sources, and Tags, by having an individual expression or a combination of expressions/expression groups.
Applying filters will trigger the webhook and create Trello cards only for events that match the filter.
Click Next: Configure Payload, and navigate to the next step.
Configure Payload: Select the pre-configured template for Trello - Create Card. You can also test the Webhook by clicking the Test Webhook on the bottom right.
Note:
Enter the List ID, API Key, and Token copied in the above steps in their respective fields.
We have added the necessary fields in the template. You can also use this link to check the fields accepted by Trello Create Card API.
Click Save and your Webhook is created.