Skip to content

[FEATURE] New Trello action #17813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "trello-add-attachment-to-card",
name: "Add Attachment To Card",
description: "Adds a file attachment on a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-attachments-post)",
version: "1.0.2",
version: "1.0.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/add-checklist/add-checklist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-add-checklist",
name: "Add Checklist",
description: "Adds a new checklist to a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checklists-post).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/add-comment/add-comment.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-add-comment",
name: "Add Comment",
description: "Create a new comment on a specific card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-actions-comments-post).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-add-existing-label-to-card",
name: "Add Existing Label to Card",
description: "Adds an existing label to the specified card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idlabels-post).",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-add-member-to-card",
name: "Add Member to Card",
description: "Adds a member to the specified card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idmembers-post).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/archive-card/archive-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-archive-card",
name: "Archive Card",
description: "Archives a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-complete-checklist-item",
name: "Complete a Checklist Item",
description: "Completes an existing checklist item in a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checkitem-idcheckitem-put).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/create-board/create-board.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-create-board",
name: "Create a Board",
description: "Create a new Trello board or copy from an existing one. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-post).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/create-card/create-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "trello-create-card",
name: "Create Card",
description: "Creates a new card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-post).",
version: "1.0.2",
version: "1.0.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-create-checklist-item",
name: "Create a Checklist Item",
description: "Creates a new checklist item in a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-checklists/#api-checklists-id-checkitems-post).",
version: "0.3.0",
version: "0.3.1",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/create-label/create-label.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-create-label",
name: "Create Label",
description: "Creates a new label on the specified board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-labels/#api-labels-post).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/create-list/create-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-create-list",
name: "Create a List",
description: "Creates a new list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-post).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-delete-checklist",
name: "Delete Checklist",
description: "Deletes the specified checklist. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-checklists/#api-checklists-id-delete).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/find-labels/find-labels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-find-labels",
name: "Find a Label",
description: "Finds a label on a specific board by name. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-labels-get)",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/find-list/find-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-find-list",
name: "Find a List",
description: "Finds a list on a specific board by name. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-lists-get).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
...common.props,
Expand Down
173 changes: 173 additions & 0 deletions components/trello/actions/get-board/get-board.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
import common from "../common/common.mjs";
import fields from "../../common/fields.mjs";

export default {
...common,
key: "trello-get-board",
name: "Get Board",
description: "Request a single board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-get).",
version: "0.0.1",
type: "action",
props: {
...common.props,
boardId: {
propDefinition: [
common.props.app,
"board",
],
label: "Board ID",
description: "The ID of the board to retrieve",
},
actions: {
propDefinition: [
common.props.app,
"actions",
],
},
boardStars: {
type: "string",
label: "Board Stars",
description: "Valid values are one of: `mine` or `none`. Default is `none`.",
options: [
"mine",
"none",
],
optional: true,
},
cardPluginData: {
type: "boolean",
label: "Card Plugin Data",
description: "Use with the cards param to include card pluginData with the response. Default is `none`.",
optional: true,
},
customFields: {
type: "boolean",
label: "Custom Fields",
description: "This is a nested resource. Include custom fields in the response.",
default: false,
optional: true,
},
fields: {
type: "string[]",
label: "Fields",
description: "The fields of the board to be included in the response. Valid values: all or a comma-separated list of specific fields.",
options: fields.board,
optional: true,
},
labels: {
type: "string",
label: "Labels",
description: "This is a nested resource. Specify what labels to include in the response. One of: `all` or `none`",
optional: true,
options: [
"all",
"none",
],
},
lists: {
type: "string",
label: "Lists",
description: "This is a nested resource. Specify what lists to include in the response.",
optional: true,
options: [
"all",
"closed",
"none",
"open",
],
},
members: {
type: "string",
label: "Members",
description: "This is a nested resource. Specify what members to include in the response.",
optional: true,
options: [
"none",
"normal",
"admins",
"owners",
"all",
],
},
pluginData: {
type: "boolean",
label: "Plugin Data",
description: "Determines whether the pluginData for this board should be returned.",
optional: true,
},
organization: {
type: "boolean",
label: "Organization",
description: "This is a nested resource. Include organization information in the response.",
optional: true,
},
organizationPluginData: {
type: "boolean",
label: "Organization Plugin Data",
description: "Use with the organization param to include organization pluginData with the response",
optional: true,
},
myPrefs: {
type: "boolean",
label: "My Preferences",
description: "Include the user's preferences for this board in the response.",
optional: true,
},
tags: {
type: "boolean",
label: "Tags",
description: "Also known as collections, tags, refer to the collection(s) that a Board belongs to.",
optional: true,
},
},
methods: {
getCommaSeparatedString(array) {
return Array.isArray(array)
? array.join(",")
: array;
},
},
async run({ $ }) {
const {
app,
getCommaSeparatedString,
boardId,
actions,
boardStars,
cardPluginData,
customFields,
fields,
labels,
lists,
members,
pluginData,
organization,
organizationPluginData,
myPrefs,
tags,
} = this;

const response = await app.getBoard({
$,
boardId,
params: {
actions: getCommaSeparatedString(actions),
boardStars,
card_pluginData: cardPluginData,
customFields,
fields: getCommaSeparatedString(fields),
labels: getCommaSeparatedString(labels),
lists,
members,
pluginData,
organization,
organizationPluginData,
myPrefs,
tags,
},
});

$.export("$summary", `Successfully retrieved board with ID \`${response.id}\``);
return response;
},
};
2 changes: 1 addition & 1 deletion components/trello/actions/get-card/get-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-get-card",
name: "Get Card",
description: "Gets a card by its ID. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-get).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/get-list/get-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-get-list",
name: "Get List",
description: "Get information about a List. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-get).",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-move-card-to-list",
name: "Move Card to List",
description: "Moves a card to the specified board/list pair. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-remove-label-from-card",
name: "Remove Card Label",
description: "Removes label from card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idlabels-idlabel-delete).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/rename-list/rename-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "trello-rename-list",
name: "Rename List",
description: "Renames an existing list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-put).",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/search-boards/search-boards.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-search-boards",
name: "Search Boards",
description: "Searches for boards matching the specified query. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-get).",
version: "0.3.2",
version: "0.3.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/search-cards/search-cards.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-search-cards",
name: "Search Cards",
description: "Searches for cards matching the specified query. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-get).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-search-checklists",
name: "Search Checklists",
description: "Find a checklist on a particular board or card by name. [See the documentation here](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-checklists-get) and [here](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checklists-get).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "trello-search-members",
name: "Search Members",
description: "Search for Trello members. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-members-get).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/update-card/update-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "trello-update-card",
name: "Update Card",
description: "Updates a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).",
version: "0.2.2",
version: "0.2.3",
type: "action",
props: {
app,
Expand Down
Loading
Loading