Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-chat-view-comment",
name: "Create Chat View Comment",
description: "Creates a chat view comment. [See the documentation](https://clickup.com/api) in **Comments / Create Chat View Comment** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-checklist-item",
name: "Create Checklist Item",
description: "Creates a new item in a checklist. [See the documentation](https://clickup.com/api) in **Checklists / Create Checklist Item** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-checklist",
name: "Create Checklist",
description: "Creates a new checklist in a task. [See the documentation](https://clickup.com/api) in **Checklists / Create Checklist** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/create-folder/create-folder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-folder",
name: "Create Folder",
description: "Creates a new folder. [See the documentation](https://clickup.com/api) in **Folders / Create Folder** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "clickup-create-list-comment",
name: "Create List Comment",
description: "Creates a list comment. [See the documentation](https://clickup.com/api) in **Comments / Create List Comment** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/create-list/create-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-list",
name: "Create List",
description: "Creates a new list. [See the documentation](https://clickup.com/api) in **Lists / Create List** section.",
version: "0.0.15",
version: "0.0.16",
type: "action",
props: {
clickup,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/create-space/create-space.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "clickup-create-space",
name: "Create Space",
description: "Creates a new space. [See the documentation](https://clickup.com/api) in **Spaces / Create Space** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-task-comment",
name: "Create Task Comment",
description: "Creates a task comment. [See the documentation](https://clickup.com/api) in **Comments / Create Task Comment** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "clickup-create-task-from-template",
name: "Create Task From Template",
description: "Creates a new task from a template. [See the documentation](https://clickup.com/api) in **Task Templates / Create Task From Template** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/create-task/create-task.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "clickup-create-task",
name: "Create Task",
description: "Creates a new task. [See the documentation](https://clickup.com/api) in **Tasks / Create Task** section.",
version: "0.0.15",
version: "0.0.16",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-create-threaded-comment",
name: "Create Threaded Comment",
description: "Creates a threaded comment. [See the documentation](https://clickup.com/api) in **Comments / Create Threaded Comment** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
100 changes: 100 additions & 0 deletions components/clickup/actions/create-time-entry/create-time-entry.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
import app from "../../clickup.app.mjs";
import common from "../common/task-props.mjs";

export default {
...common,
key: "clickup-create-time-entry",
name: "Create Time Entry",
description: "Create a new time entry. [See the documentation](https://developer.clickup.com/reference/createatimeentry)",
version: "0.0.1",
type: "action",
props: {
...common.props,
folderId: {
propDefinition: [
common.props.clickup,
"folderId",
(c) => ({
spaceId: c.spaceId,
}),
],
optional: true,
},
listId: {
propDefinition: [
common.props.clickup,
"listId",
(c) => ({
folderId: c.folderId,
spaceId: c.spaceId,
}),
],
optional: true,
},
taskId: {
propDefinition: [
common.props.clickup,
"taskId",
(c) => ({
listId: c.listId,
useCustomTaskIds: c.useCustomTaskIds,
authorizedTeamId: c.authorizedTeamId,
}),
],
description: "To show options please select a **List** first",
optional: true,
},
tags: {
propDefinition: [
app,
"tags",
(c) => ({
spaceId: c.spaceId,
}),
],
optional: true,
},
start: {
type: "string",
label: "Start Time",
description: "The Start Time, can be ISO 8601 Date (.e.g `2025-08-06T01:50:19Z`) or Unix timestamp in milliseconds (.e.g `1595282645000`)",
},
end: {
type: "string",
label: "End Time",
description: "The End Time, can be ISO 8601 Date (.e.g `2025-08-06T01:50:19Z`) or Unix timestamp in milliseconds (.e.g `1595282645000`)",
},
description: {
type: "string",
label: "Description",
description: "Description of the time entry",
},
},
async run({ $ }) {
const start = new Date(+this.start || this.start).getTime();
const end = new Date(+this.end || this.end).getTime();

const data = {
tid: this.taskId,
description: this.description,
start,
end,
stop: end,
};
Comment on lines +77 to +83
Copy link
Contributor

@coderabbitai coderabbitai bot Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Use the tags prop in the API payload when provided.

tags is defined but not used. Include it conditionally.

     const data = {
       tid: this.taskId,
       description: this.description,
       start,
       end,
+      ...(this.tags?.length ? { tags: this.tags } : {}),
     };

Also applies to: 47-56

🤖 Prompt for AI Agents
In components/clickup/actions/create-time-entry/create-time-entry.mjs around
lines 77-83 (and similarly at lines 47-56), the payload object builds time entry
data but never includes the tags property; update the code to conditionally add
tags to the payload when this.tags is provided (truthy) so the API receives it.
Modify the payload construction to include the tags field only if present (e.g.,
check this.tags and set payload.tags = this.tags or spread a tags key), ensuring
you do the same conditional inclusion in the earlier block at lines 47-56.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why the tags property isn't being used?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Search for how tags are used in other ClickUp actions
echo "=== Searching for tags usage in ClickUp actions ==="
rg "tags.*:" components/clickup/actions/ -A 3 -B 1

echo -e "\n=== Searching for how tags are included in API payloads ==="
rg "tags\s*:" components/clickup/actions/ --type js -A 5 -B 5 | grep -E "(data|payload|body|params).*=.*{" -A 10 -B 2

echo -e "\n=== Check the createTimeEntry method implementation ==="
ast-grep --pattern 'createTimeEntry($_) {
  $$$
}'

Length of output: 1361


🏁 Script executed:

#!/bin/bash
# Check how create-task handles tags in its run method
echo "=== Checking create-task run method for tags usage ==="
cat components/clickup/actions/create-task/create-task.mjs | grep -A 50 "async run"

echo -e "\n=== Check createTimeEntry method in clickup.app.mjs ==="
cat components/clickup/clickup.app.mjs | grep -A 15 "createTimeEntry"

echo -e "\n=== Check ClickUp API documentation link ==="
cat components/clickup/actions/create-time-entry/create-time-entry.mjs | grep -i "documentation"

Length of output: 1705


@GTFalcao Looking at the code, this appears to be an oversight. The tags prop is defined in the component (lines 47-56) but isn't included in the API payload (lines 77-83).

Comparing with the create-task action which also has a tags prop, that action correctly includes tags in its data payload:

const response = await this.clickup.createTask({
  $,
  listId,
  data: {
    name,
    description,
    // ... other fields
    tags,  // ← tags is included here
    status,
    parent,
    // ...
  },
});

The create-time-entry action should similarly include tags when constructing the data object. The fix would be to add tags to the payload:

const data = {
  tid: this.taskId,
  description: this.description,
  start,
  end,
  stop: end,
  ...(this.tags?.length ? { tags: this.tags } : {}),
};

This way, tags will be passed to the ClickUp API when provided by the user, maintaining consistency with other ClickUp actions.


console.log(data);

const response = await this.clickup.createTimeEntry({
$,
teamId: this.workspaceId,
params: {
custom_task_ids: this.useCustomTaskIds,
},
data,
});

$.export("$summary", "Successfully created a new time entry");

return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "clickup-create-view-comment",
name: "Create View Comment",
description: "Creates a view comment. [See the documentation](https://clickup.com/api) in **Comments / Create Chat View Comment** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-checklist-item",
name: "Delete Checklist Item",
description: "Deletes item in a checklist. [See the documentation](https://clickup.com/api) in **Checklists / Delete Checklist Item** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-checklist",
name: "Delete Checklist",
description: "Deletes a checklist in a task. [See the documentation](https://clickup.com/api) in **Checklists / Delete Checklist** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-comment",
name: "Delete Comment",
description: "Deletes a comment. [See the documentation](https://clickup.com/api) in **Comments / Deleet Comment** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { commentId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/delete-folder/delete-folder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-folder",
name: "Delete Folder",
description: "Delete a folder. [See the documentation](https://clickup.com/api) in **Folders / Delete Folder** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { folderId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/delete-list/delete-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-list",
name: "Delete List",
description: "Delete a list. [See the documentation](https://clickup.com/api) in **Lists / Delete List** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/delete-space/delete-space.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-space",
name: "Delete Space",
description: "Delete a space. [See the documentation](https://clickup.com/api) in **Spaces / Delete Space** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { spaceId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/delete-task/delete-task.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-delete-task",
name: "Delete Task",
description: "Delete a task. [See the documentation](https://clickup.com/api) in **Tasks / Delete Task** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-custom-fields",
name: "Get Custom Fields",
description: "Get a list of custom fields. [See the documentation](https://clickup.com/api) in **Custom Fields / Get Accessible Custom Fields** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-folder-views",
name: "Get Folder Views",
description: "Get all views of a folder. [See the documentation](https://clickup.com/api) in **Views / Get Folder Views** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { folderId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-folder/get-folder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-folder",
name: "Get Folder",
description: "Get a folder in a workplace. [See the documentation](https://clickup.com/api) in **Folders / Get Folder** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { folderId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-folders/get-folders.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-folders",
name: "Get Folders",
description: "Get a list of folders in a workplace. [See the documentation](https://clickup.com/api) in **Folders / Get Folders** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-list-comments",
name: "Get List Comments",
description: "Get a list comments. [See the documentation](https://clickup.com/api) in **Comments / Get List Comments** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-list-views",
name: "Get List Views",
description: "Get all views of a list. [See the documentation](https://clickup.com/api) in **Views / Get List Views** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-list/get-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-list",
name: "Get List",
description: "Get a list. [See the documentation](https://clickup.com/api) in **Lists / Get List** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-lists/get-lists.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-lists",
name: "Get Lists",
description: "Get a list of lists. [See the documentation](https://clickup.com/api) in **Lists / Get Lists** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-space-views",
name: "Get Space Views",
description: "Get all views of a space. [See the documentation](https://clickup.com/api) in **Views / Get Space Views** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { spaceId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-space/get-space.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-space",
name: "Get Space",
description: "Get a space in a workplace. [See the documentation](https://clickup.com/api) in **Spaces / Get Space** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
async run({ $ }) {
const { spaceId } = this;
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-spaces/get-spaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "clickup-get-spaces",
name: "Get Spaces",
description: "Get a list of spaces in a workplace. [See the documentation](https://clickup.com/api) in **Spaces / Get Spaces** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-task-comments",
name: "Get Task Comments",
description: "Get a task comments. [See the documentation](https://clickup.com/api) in **Comments / Get Task Comments** section.",
version: "0.0.10",
version: "0.0.11",
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: "clickup-get-task-templates",
name: "Get Task Templates",
description: "Get a list of templates. [See the documentation](https://clickup.com/api) in **Task Templates / Get Task Templates** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/clickup/actions/get-task/get-task.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "clickup-get-task",
name: "Get Task",
description: "Get a task. [See the documentation](https://clickup.com/api) in **Tasks / Get Task** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Loading
Loading