Trusted by 250,000+ developers from startups to Fortune 500 companies:
This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.
To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.
Card Updates (Instant) on Trello
Description:Emit new event for each update to a Trello card.
Version:0.0.7
Key:trello-card-updates
import common from "../common-webhook.mjs";
export default {
...common,
key: "trello-card-updates",
name: "Card Updates (Instant)",
description: "Emit new event for each update to a Trello card.",
version: "0.0.7",
type: "source",
props: {
...common.props,
board: {
propDefinition: [
common.props.trello,
"board",
],
},
cards: {
propDefinition: [
common.props.trello,
"cards",
(c) => ({
board: c.board,
}),
],
},
},
methods: {
...common.methods,
isCorrectEventType(event) {
const eventType = event.body?.action?.type;
return eventType === "updateCard";
},
async getResult(event) {
const cardId = event.body?.action?.data?.card?.id;
return this.trello.getCard(cardId);
},
isRelevant({ result: card }) {
return (
(!this.board || this.board === card.idBoard) &&
(!this.cards || this.cards.length === 0 || this.cards.includes(card.id))
);
},
},
};
This component may be configured based on the props
defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
Label | Prop | Type | Description |
---|
Trello | trello | app | This component uses the Trello app. |
N/A | db | $.service.db | This component uses $.service.db to maintain state between component invocations. |
N/A | http | $.interface.http | This component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component. |
Board | board | string | Select a value from the drop down menu. |
Cards | cards | string[] | Select a value from the drop down menu. |
Trello uses OAuth authentication. When you connect your Trello account, Pipedream will open a popup window where you can sign into Trello and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Trello API.
Pipedream requests the following authorization scopes when you connect your account:
read
write
Trello keeps track of everything, from the big picture to the minute details