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
93 changes: 93 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,93 @@
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: "integer",
label: "Start Time",
description: "Unix timestamp in milliseconds for the Start Time, e.g., `1595282645000`",
},
end: {
type: "integer",
label: "End Time",
description: "Unix timestamp in milliseconds, e.g., `1595283000000`. When there are values for both start and end, duration is ignored",
},
description: {
type: "string",
label: "Description",
description: "Description of the time entry",
},
},
async run({ $ }) {
const response = await this.clickup.createTimeEntry({
$,
teamId: this.workspaceId,
params: {
custom_task_ids: this.useCustomTaskIds,
},
data: {
tid: this.taskId,
description: this.description,
start: this.start,
end: this.end,
stop: this.end,
},
});

$.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
2 changes: 1 addition & 1 deletion components/clickup/actions/get-tasks/get-tasks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "clickup-get-tasks",
name: "Get Tasks",
description: "Get a list of tasks. [See the documentation](https://clickup.com/api) in **Tasks / Get Tasks** section.",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Loading
Loading