> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.todoist.core.CreateComment

- Component: `appmixer.todoist.core.CreateComment`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.todoist 1.1.3](https://connectors.appmixer.com/connector/appmixer.todoist/1.1.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.todoist/1.1.3/component/appmixer.todoist.core.CreateComment>

Create a new comment on a task or project.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Content (`content`) | textarea | The content of the comment. May contain markdown-formatted text and hyperlinks. |
| Task ID (`taskId`) | text | The ID of the task to comment on. Either Task ID or Project ID is required. |
| Project (`projectId`) | select | The project to comment on. Either Task ID or Project ID is required. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | string | - |
| Task ID (`task_id`) | string | - |
| Project ID (`project_id`) | string | - |
| Posted At (`posted_at`) | string | - |
| Content (`content`) | string | - |
| Attachment (`attachment`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.todoist.core.CreateComment",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new comment on a task or project.",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:todoist"
  },
  "quota": {
    "manager": "appmixer:todoist",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "taskId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "content"
        ]
      },
      "inspector": {
        "inputs": {
          "content": {
            "type": "textarea",
            "label": "Content",
            "tooltip": "The content of the comment. May contain markdown-formatted text and hyperlinks.",
            "index": 1
          },
          "taskId": {
            "type": "text",
            "label": "Task ID",
            "tooltip": "The ID of the task to comment on. Either Task ID or Project ID is required.",
            "index": 2
          },
          "projectId": {
            "type": "select",
            "label": "Project",
            "tooltip": "The project to comment on. Either Task ID or Project ID is required.",
            "index": 3,
            "source": {
              "url": "/component/appmixer/todoist/core/ListProjectsSelect?outPort=out",
              "data": {
                "transform": "./transformers#projectsToSelectArray"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "ID"
          },
          "task_id": {
            "type": "string",
            "title": "Task ID"
          },
          "project_id": {
            "type": "string",
            "title": "Project ID"
          },
          "posted_at": {
            "type": "string",
            "title": "Posted At"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "attachment": {
            "type": "object",
            "title": "Attachment",
            "properties": {
              "file_name": {
                "type": "string",
                "title": "Attachment File Name"
              },
              "file_type": {
                "type": "string",
                "title": "Attachment File Type"
              },
              "file_url": {
                "type": "string",
                "title": "Attachment File URL"
              },
              "resource_type": {
                "type": "string",
                "title": "Attachment Resource Type"
              }
            }
          }
        },
        "example": {
          "id": "3947969952",
          "task_id": "9907445074",
          "project_id": "2365437921",
          "posted_at": "2026-01-12T08:02:29Z",
          "content": "Please review this section",
          "attachment": {
            "file_name": "report.pdf",
            "file_type": "application/pdf",
            "file_url": "https://cdn.todoist.com/attachments/report.pdf",
            "resource_type": "file"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
