Comments in Tasks: Overview of Methods
In task comments, participants ask questions, discuss the task, and track progress. Important notes can be left here, and results can be recorded.
Comments do not work with version of the module tasks 25.700.0
Instead of comments, a chat feature is available in the new task card. How to work with the task chat is described in the article New Task Card: Comments and Events.
Quick navigation: all methods and events
User documentation: Working with tasks
Connection of Comments with Other Objects
Task. Comments are linked to the task by the identifier TASKID. You can obtain it using the create new task method or the get task list method.
User. A comment is associated with a user by the numeric identifier in the AUTHOR_ID parameter. You can get the user identifier using the user.get method.
User documentation
Drive Files
You can attach Drive files to a task comment. In the UF_FORUM_MESSAGE_DOC parameter, pass an array with the identifiers of the Drive files. Prefix each identifier with n, for example: "UF_FORUM_MESSAGE_DOC": ["n428", "n345"]. You can obtain file identifiers in two ways.
Use one of the file upload methods:
Use one of the methods to get the list of files:
Typical use-cases and scenarios
Task Execution Results
A comment can be pinned as the result of task execution. Manage task results with the group of methods tasks.task.result.*.
The method task.commentitem.delete will delete the comment with the result.
Overview of Methods and Events
Scope:
taskWho can execute the method: depends on the method
|
Method |
Description |
|
Add a comment to a task |
|
|
Update a comment |
|
|
Get a task comment by |
|
|
Get a list of comments for a task |
|
|
Delete a comment |
|
Event |
Triggered |
|
When a comment is added to a task |
|
|
When a comment is updated in a task |
|
|
When a comment is deleted from a task |