Task Template Fields v 3.0
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation
This page describes the task template fields in REST 3.0. The Template Object section lists all template fields, and the other sections describe the fields of nested and related objects.
REST 3.0 methods are called at an address that contains /rest/api/. The names of the template methods match the names of the previous version methods, for example, tasks.template.get, but their parameter and response formats differ. The specifics of the new version are described in the REST 3.0 overview.
Which Fields the Methods Accept and Return
|
Method |
Accepts |
Returns |
|
Editable fields of the template object in |
The created template with all filled fields, including |
|
|
Editable fields of the template object in |
Success flag |
|
|
Template |
Without |
|
|
|
Without |
|
|
|
A copy of the template with the same set of fields as |
|
|
Template |
Success flag |
Fields with the null value are not included in the response. For example, if a template has no parent template, the response does not contain the baseTemplateId field.
Boolean fields accept and return true or false. The string values Y and N used by the previous version methods are not accepted in REST 3.0: the method returns a validation error. The exception is workdayOnly in the recurrence parameters object.
The method rejects a field that cannot be changed with the "Field is read-only" error. Such fields are marked as read-only in the table.
Template Object
|
Name |
Description |
|
id |
Template ID. Read-only. Available in filter and sorting |
|
title |
Title of the template and of the task created from it. Required for creating a template. Available in filter and sorting |
|
description |
Description of the template and of the task created from it, in BB code format |
|
descriptionInBbcode |
Indicates that the description is stored in BB code rather than HTML. Read-only |
|
creatorId |
Creator ID. Required for creating a template, not available when updating a template. Only an administrator can specify another employee as the creator. A user without administrator permissions specifies their own ID. The user ID can be retrieved with the user.get method. Available in filter |
|
creator |
Creator. An object of type user. Specify the object fields in |
|
responsibleId |
ID of the responsible person for the task created from the template. If there are several responsible persons, the ID of the first one in the When writing, use |
|
responsibleCollection |
List of responsible persons. Each element is a member object with the Several responsible persons make sense together with |
|
responsibleLastName |
Last name of the first responsible person. Read-only. Available in sorting |
|
accomplices |
List of participants. Each element is a member object with the |
|
auditors |
List of auditors. Each element is a member object with the |
|
groupId |
ID of the project in which the task is created from the template. The ID can be retrieved with the sonet_group.get method. Available in filter and sorting |
|
group |
Project. An object of type group. Specify the object fields in the |
|
taskId |
ID of the task from which the template was created. |
|
task |
Task from which the template was created. A task object with the |
|
parentId |
ID of the task whose subtask the task created from the template becomes |
|
parent |
Not filled. The parent task is set by |
|
baseTemplateId |
ID of the parent template to which this template is linked as a child. Available in filter and sorting |
|
templateChildrenCount |
Number of child templates. Returned only by tasks.template.list. Read-only. Available in sorting |
|
subTemplateIds |
IDs of the child templates available to the user. Returned only by tasks.template.list. Read-only. Links are changed by the tasks.template.relation.child.* methods |
|
stageId |
ID of the stage the created task goes to. Read-only. Available in filter and sorting |
|
xmlId |
External code of the template. Read-only. Available in filter |
|
status |
Code of the status with which the task is created from the template, for example, |
|
addInReport |
Indicates that the created task is included in reports. Read-only |
|
priority |
Priority of the created task. Possible values:
Default: |
|
tParamType |
Template type. Possible values:
Default: |
|
deadlineAfterTs |
Number of seconds after the task is created when its deadline occurs, for example, |
|
startDatePlanTs |
Number of seconds after the task is created when its planned start occurs |
|
endDatePlanTs |
Number of seconds after the task is created when its planned end occurs |
|
allowsChangeDeadline |
The responsible person can change the deadline of the created task. Default: |
|
allowsTimeTracking |
Time tracking is enabled in the created task. Default: |
|
matchesWorkTime |
The dates of the created task are calculated based on the company's working hours, excluding weekends and holidays. Default: |
|
needsControl |
The creator reviews the completed task. Default: |
|
requireResult |
The created task cannot be completed until a result is added. If the parameter has not been set, the field is not in the response |
|
checklistAutonumbering |
Checklist items and subitems of the template and of the tasks created from it are numbered automatically. If the parameter has not been set, the field is not in the response |
|
estimatedTime |
Estimated effort of the created task in seconds |
|
multitask |
Each responsible person from |
|
siteId |
ID of the site to which the template is bound. Default: |
|
replicate |
Tasks are created from the template automatically, on the schedule from |
|
replicateParams |
Schedule on which tasks are created. Recurrence parameters object |
|
tParamReplicationCount |
Number of tasks already created on the schedule. Taken into account if |
|
dependsOn |
IDs of the tasks on which the created task depends. No more than 50 positive integers. The user must have read access to each task. When the template is updated, links to tasks that the user cannot see are kept. Available in sorting |
|
fileIds |
IDs of the files attached to the template. Template files are returned by the tasks.template.file.list method |
|
crmItemIds |
IDs of CRM items linked to the created task, with a type prefix, for example, |
|
checklist |
IDs of checklist items. Read-only. Items are changed by the tasks.template.checklist.* methods |
|
tags |
Tags of the created task. Each element is a tag object. When writing, only the |
|
permissions |
Template access permissions. Each element is an access permission object |
|
userFields |
Custom field values. Each element is a custom field object |
Member Object
An element of the responsibleCollection, accomplices, and auditors arrays.
|
Name |
Description |
|
id |
User ID. Can be retrieved with the user.get method |
If the template is recurring, the creator must have permission to assign tasks to each responsible person and participant, and, when the project changes, permission to create tasks in the project. Otherwise, the method returns an access error.
Recurrence Parameters Object
The replicateParams object is replaced entirely. Parameters that are not passed receive default values. Numeric parameters are passed and returned as strings, for example, "1".
|
Name |
Description |
|
period |
How often to create a task. Possible values:
|
|
time |
Time of task creation in the |
|
timezoneOffset |
Timezone offset in seconds used to calculate the schedule. Default: |
|
startDate |
Start date of recurrence in the Bitrix24 date format, for example, |
|
repeatTill |
When to stop recurrence. Possible values:
|
|
endDate |
End date of recurrence in the Bitrix24 date format. Used if |
|
times |
Number of tasks to create. Used if |
|
everyDay |
Interval in days between tasks when |
|
workdayOnly |
Create the task on working days only. Possible values:
Default: |
|
dailyMonthInterval |
When |
|
everyWeek |
Interval in weeks between tasks when |
|
weekDays |
Days of the week on which to create the task when |
|
monthlyType |
How to choose the day of the month when
The method rejects any other value with a validation error |
|
monthlyDayNum |
Day of the month when |
|
monthlyMonthNum1 |
Interval in months between tasks when |
|
monthlyWeekDayNum |
Week number in the month when |
|
monthlyWeekDay |
Day of the week when |
|
monthlyMonthNum2 |
Interval in months between tasks when |
|
yearlyType |
How to choose the day of the year when
The method rejects any other value with a validation error |
|
yearlyDayNum |
Day of the month when |
|
yearlyMonth1 |
Month when |
|
yearlyWeekDayNum |
Week number in the month when |
|
yearlyWeekDay |
Day of the week when |
|
yearlyMonth2 |
Month when |
|
deadlineOffset |
Number of seconds after the task is created when its deadline occurs. Matches the template's |
|
nextExecutionTime |
Date and time of the next task creation in the Bitrix24 date format. Calculated automatically, read-only |
Access Permission Object
An element of the permissions array. When writing, the list of permissions is replaced entirely. When a template is created, the creator receives the full permission automatically.
Permissions can be changed by an administrator, the template author, or a user with the full permission. Permission configuration is not available on all plans: on a plan without this feature, the method returns an error, so remove permissions from the request.
|
Name |
Description |
|
id |
ID of the access permission record. Read-only |
|
accessCode* |
Who is granted the permission. Possible values:
|
|
permission* |
Access type. Possible values:
|
Tag Object
|
Name |
Description |
|
id |
Tag ID. Read-only |
|
name |
Tag name |
|
ownerId |
ID of the user who owns the tag. Read-only |
Custom Field Object
Task custom fields are created by the task.item.userfield.* methods.
|
Name |
Description |
|
key |
Field code, for example, |
|
value |
Field value. The type depends on the field settings. If the field is empty, |
Task Object
Task from which the template was created. Only these fields are available in the select of the tasks.template.get method.
|
Name |
Description |
|
id |
Task ID |
|
title |
Task title. If the user has no access to the task, the object is not in the response |