• FAQ
  • API
  • Comments
  • Creating comments in task through API: post_comment

Creating comments in task through API: post_comment


Sample post_comment request

?action=post_comment&id_task=TASK_ID&email_user_from=USER_EMAIL&text=TEXT
Creates comment in selected task
*allows files attaching (see details)

Required parameters:
  • id_task — task ID
Conditional parameters:
*at least one of parameters required: text, todo
  • text — comment text
  • todo⦋⦌ — checkbox item (combine several items to get checklist, example: todo⦋⦌=case1&todo⦋⦌=case2
Optional parameters:
  • email_user_from — comment author email (will be set automatically if using access token)
  • hidden — user emails separated by commas, who will have access to this comment, while it will be hidden for others
  • mention — user emails separated by commas, who will be mentioned at the end of the comment

Sample JSON response
If the request succeeds, the response will contain ok status and the following data:

{
"status": "ok", "data": { "id": "COMMENT_ID", "page": "/project/PROJECT_ID/TASK_ID/SUBTASK_ID/#comCOMMENT_ID", "text": "COMMENT_TEXT", "date_added": "YYYY—MM—DD HH:II", "user_from": { "id": "USER_ID", "email": "USER_EMAIL", "name": "USER_NAME" } }
}