add_comment: Add a comment to a task or project

View source: R/comments.R

add_commentR Documentation

Add a comment to a task or project

Description

Add a comment to a task or project

Usage

add_comment(
  content,
  task_id = NULL,
  project_id = NULL,
  verbose = TRUE,
  token = get_todoist_api_token()
)

Arguments

content

content of the comment

task_id

id of the task (either task_id or project_id required)

project_id

id of the project (either task_id or project_id required)

verbose

boolean that make the function verbose

token

todoist API token

Value

id of the new comment

Examples

## Not run: 
add_comment(content = "This is a comment", task_id = "12345")
add_comment(content = "Project comment", project_id = "67890")

## End(Not run)

rtodoist documentation built on Feb. 14, 2026, 5:06 p.m.