Tasks: Overview of Methods
Tasks in Bitrix24 are a unified space that helps organize team work: assigning small tasks and managing large projects. In tasks, you can track the progress of employees, control deadlines, and distribute responsibilities.
Quick navigation: all methods and events
User documentation: Bitrix24 tasks
Features of Task Methods
In task methods, it is important to follow the order of parameters in the request as specified in the parameter tables. Otherwise, the request will execute with errors.
Task Card
The task card can be divided into blocks:
- description
- system and custom fields
- comments, history, and time tracking
The task description contains information about what needs to be done. You can add checklists, files, and links to other tasks to the text.
Checklists help create a list of steps for completing the task. You can manage checklists using the group of methods task.checklistitem.*.
Create links to tasks using the method task.dependence.add. Delete them using the method task.dependence.delete.
When creating a task, fill in the system fields: specify the assignee, watchers, deadline, tags, and so on.
If the system fields are not enough, you can create your own custom fields. They allow you to store information in various data formats: string, number, date with time, and yes/no. You can create, modify, retrieve, or delete custom task fields using the group of methods task.item.userfield.*.
In comments, discuss the task and write about the results of the work. Use the group of methods task.commentitem.* to work with comments.
The results of the work on the task can be recorded in a comment and fixed as a result. Manage task results using the group of methods tasks.task.result.*.
Time tracking in tasks monitors the time spent by an employee on the task. You can work with time tracking records using the group of methods task.elapseditem.*.
All actions with the task are recorded and saved in the task history. To retrieve the history, use the method tasks.task.history.list.
User Documentation
Linking Tasks with Other Objects
Parent Task. A task can have subtasks. In this case, it is considered a parent task. You can add a link to the parent task in the PARENT_ID parameter. You can obtain the task ID using the method creating a task or getting a list of tasks.
Group or Project. The task is linked by the group ID GROUP_ID. You can obtain the ID using the method creating a new group or the method getting a list of groups.
User. The task is linked to users by numerical IDs in the fields:
CREATED_BY— creatorRESPONSIBLE_ID— assigneeACCOMPLICES— participantsAUDITORS— watchersCHANGED_BY— last user who modified the taskSTATUS_CHANGED_BY— last user who changed the task statusCLOSED_BY— user who completed the task
You can obtain the user ID using the method user.get.
CRM. You can link CRM objects to the task: contacts, companies, leads, deals, invoices, and SPAs. To link an object, specify its identifier with prefix in the UF_CRM_TASK parameter. For example, C_3 for a contact with id = 3. You can obtain the ID using the method creating a new CRM item or the method getting a list of items.
E-mail. The task can be linked to an e-mail by its ID through the UF_MAIL_MESSAGE parameter.
User Documentation
Drive Files
You can attach Drive files to the task description. In the UF_TASK_WEBDAV_FILES parameter, pass an array with the IDs of the Drive files. Precede each ID with the prefix n, for example: "UF_TASK_WEBDAV_FILES": ["n428", "n345"]. You can obtain file IDs in two ways.
Use one of the file upload methods:
Use one of the methods to get the list of files:
Attach files to the task using the method tasks.task.files.attach if the task has already been created.
Typical use-cases and scenarios
Flows
Flows are a tool that automates the distribution and execution of tasks. Employees do not need to search for who will do the task. They place tasks in the department flow, and it automatically assigns the assignee.
You can manage Flows using the group of methods tasks.flow.Flow.*.
User Documentation
Tasks in Scrum
Tasks in Scrum are standard Bitrix24 tasks with enhanced capabilities for working according to the Scrum methodology. In Scrum, the team can:
- assess the complexity of tasks using story points
- attach tasks to epics
- place tasks in the backlog and sprints
- move tasks through the stages of the sprint during the work process
Learn more about Scrum and its methods in the article Scrum: Overview of Methods.
User Documentation
Task Management Modes
Kanban is a tool that helps visually represent task management in the form of columns and cards. Columns are stages of work, and cards are tasks. Kanban is used for managing tasks in groups and projects.
"My Planner" is a mode for managing your tasks in the form of a kanban. Each employee will have their own stages in "My Planner".
You can manage the stages of kanban and "My Planner" using the group of methods task.stages.*.
Tasks in "Daily Planner"
"Daily Planner" is a list of tasks, activities, and meetings that you have scheduled for the workday. The method task.planner.getlist retrieves the list of tasks from the "Daily Planner".
Widgets
You can embed an application into the task card. Thanks to the embedding, you can use the application without leaving the card.
- Tab in the task card
TASK_VIEW_TAB - Right panel of the task card
TASK_VIEW_SIDEBAR - Link at the top of the task card
TASK_VIEW_TOP_PANEL
The application can also be embedded in the task list:
- Context menu item in the list
TASK_LIST_CONTEXT_MENU
In the task management modes kanban or "My Planner," there are two more special places for embedding:
- Main dropdown menu item
TASK_USER_LIST_TOOLBAR,TASK_GROUP_LIST_TOOLBAR - Main dropdown menu item near robot settings
TASK_ROBOT_DESIGNER_TOOLBAR
Overview of Methods and Events
Scope:
taskWho can execute the method: depending on the method
Basic
|
Method |
Description |
|
Creates a task |
|
|
Updates a task |
|
|
Retrieves information about a task by |
|
|
Retrieves a list of tasks |
|
|
Attaches files to a task |
|
|
Delegates tasks |
|
|
Retrieves user counters |
|
|
Changes the task status to "in progress" |
|
|
Stops the task and changes its status to "waiting for execution" |
|
|
Changes the task status to "deferred" |
|
|
Changes the task status to "completed" |
|
|
Renews a task after it has been completed |
|
|
Approves a task |
|
|
Rejects a task |
|
|
Deletes a task |
|
|
Allows watching a task |
|
|
Stops watching a task |
|
|
Adds tasks to favorites |
|
|
Removes tasks from favorites |
|
|
Retrieves available fields |
|
|
Checks access to a task |
|
|
Retrieves task history |
|
|
Enables "Mute" mode |
|
|
Disables "Mute" mode |
|
|
Creates a dependency of one task on another |
|
|
Deletes a dependency of one task on another |
|
Event |
Triggered |
|
When a task is added |
|
|
When a task is updated |
|
|
When a task is deleted |
Task Result
|
Method |
Description |
|
Adds a comment to the result |
|
|
Retrieves a list of task results |
|
|
Deletes a comment from the task result |
Checklists
|
Method |
Description |
|
Adds a new checklist item to a task |
|
|
Updates the data of a checklist item |
|
|
Retrieves a checklist item by its |
|
|
Retrieves a list of checklist items in a task |
|
|
Moves a checklist item in the list after the specified one |
|
|
Marks a checklist item as completed |
|
|
Marks a completed checklist item as active again |
|
|
Deletes a checklist item |
|
|
Checks if the action is allowed for the checklist item |
|
|
Retrieves the list of methods and their descriptions |
Comments
|
Method |
Description |
|
Creates a new comment for a task |
|
|
Updates the comment data |
|
|
Retrieves a comment for a task |
|
|
Retrieves a list of comments for a task |
|
|
Deletes a comment |
Time Tracking
|
Method |
Description |
|
Adds time spent to a task |
|
|
Updates the parameters of the time tracking record |
|
|
Retrieves a time tracking record by its identifier |
|
|
Retrieves a list of time tracking records for a task |
|
|
Deletes a time tracking record |
|
|
Checks if the action is allowed |
|
|
Retrieves the list of methods and their descriptions |
Custom Fields
|
Method |
Description |
|
Creates a new field |
|
|
Updates the parameters of the field |
|
|
Retrieves a field by its identifier |
|
|
Retrieves a list of fields |
|
|
Deletes a field |
|
|
Retrieves all available data types |
|
|
Retrieves all available fields of the custom field |
Kanban and "My Planner" Stages
|
Method |
Description |
|
Adds stages to kanban or "My Planner" |
|
|
Updates stages of kanban or "My Planner" |
|
|
Retrieves stages of kanban or "My Planner" |
|
|
Determines if the current user can move tasks in the specified object |
|
|
Moves tasks from one stage to another |
|
|
Deletes stages of kanban or "My Planner" |
Tasks in "Daily Planner"
|
Method |
Description |
|
Retrieves a list of tasks from the "Daily Planner" |
Flows
|
Method |
Description |
|
Creates a flow |
|
|
Retrieves a flow |
|
|
Modifies a flow |
|
|
Deletes a flow |
|
|
Checks if a flow with that name exists |
|
|
Activates or deactivates a flow |