Use the webhooks integration to create a Trello card Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter .
You can use the webhooks integration to instantly create a Trello card using the @-notification feature .
This flow uses the Trello REST POST card API endpoint to post an @notification to a relevant Trello list.
Login to Trello to get your Trello application key and token .
NOTE : Trello mentions API key in the URL. For this article, API and app keys are one and the same.
To get the token, click the token link (green arrow) above, authorize a token with the Trello account you are logged into, and grab the token in the subsequent link:
Click on a card in the list you’d like to add cards to. Append .json
to the URL, and then navigate to that URL.
From there, find the value of idList
:
See the API documentation for Trello cards and Datadog’s webhooks integration
In the configuration:
Enable Custom Payload and fill in a JSON object that looks like:
{
"name" : "$USER : $EVENT_TITLE" ,
"desc" : "$EVENT_MSG" ,
"key" : "{APP_KEY}" ,
"token" : "{TOKEN_KEY}" ,
"pos" : "bottom" ,
"idList" : "{ID_LIST_VALUE}"
}
Copy
name : title of the carddesc : description of the cardkey : application keytoken : token keypos : relative position of the card on the listidList : list IDThe resulting config looks like this:
This flow involves Trello generating a server token for the application. As you can see in the token disclaimer:
The token provides read/write access to all your boards and teams, so this is a potential concern if you do not want to give away access in this way.
To avoid this, consider creating a specific Trello user that is only joined to the board you designate. Have that user receive the server token.