Skip to content

Commit

Permalink
feat(clickup): ad markdown param
Browse files Browse the repository at this point in the history
  • Loading branch information
kishanprmr committed Aug 5, 2024
1 parent d95d947 commit 7047297
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/pieces/community/clickup/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@activepieces/piece-clickup",
"version": "0.5.12"
}
"version": "0.5.13"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,39 @@ export const createClickupTask = createAction({
'ID of assignee for Clickup Task'
),
name: Property.ShortText({
description: 'The name of the task to create',
displayName: 'Task Name',
description: 'The name of task',
displayName: 'Name',
required: true,
}),
description: Property.LongText({
description: 'The description of the task to create',
displayName: 'Task Description',
description: 'The description of task',
displayName: 'Description',
required: false,
}),
markdown_description: Property.LongText({
description: 'The description of the task to create (in markdown)',
displayName: 'Task Description (Markdown)',
displayName: 'Markdown Description',
description: 'The description of task with markdown formatting',
required: false,
}),
},
async run(configValue) {
const { list_id, name, description, status_id, priority_id, assignee_id } =
configValue.propsValue;
const {
list_id,
name,
description,
status_id,
priority_id,
assignee_id,
markdown_description,
} = configValue.propsValue;
const response = await callClickUpApi(
HttpMethod.POST,
`list/${list_id}/task`,
getAccessTokenOrThrow(configValue.auth),
{
name,
description,
markdown_description,
status: status_id,
priority: priority_id,
assignees: assignee_id,
Expand Down

0 comments on commit 7047297

Please sign in to comment.