Documentation

tasks.task.get

Returns data about specific task.

Attention! The fields must be specified in select, because default fields can be modified in the future.

Parameters

ParameterDescription
taskIdTask ID.
selectArray of record fields that will be returned by the method. Only the required fields can be specified.

Sorting fields can have values:
  • ID - task ID;
  • PARENT_ID - parent task ID;
  • TITLE - task name;
  • DESCRIPTION - description;
  • MARK - evaluation;
  • PRIORITY - priority:
    • 0 - low;
    • 1 - medium;
    • 2 - high.
  • STATUS - status;
  • MULTITASK - multitask;
  • NOT_VIEWED - not viewed task;
  • REPLICATE - repeat task;
  • GROUP_ID - workgroup. 
  • STAGE_ID - stage;
  • CREATED_BY - created by;
  • CREATED_DATE - creation date;
  • RESPONSIBLE_ID - responsible for task;
  • ACCOMPLICE - task participant ID;
  • AUDITOR - auditor ID;
  • CHANGED_BY - who modified task;
  • CHANGED_DATE - date when modified;
  • STATUS_CHANGED_DATE - who changed task status;
  • CLOSED_BY - who closed task;
  • CLOSED_DATE - date when task is closed;
  • DATE_START - task start date;
  • DEADLINE - deadline;
  • START_DATE_PLAN - planned task start;
  • END_DATE_PLAN - planned task finish;
  • GUID - GUID (static unique 128-byte ID);
  • XML_ID - external code;
  • COMMENTS_COUNT - number of comments;
  • NEW_COMMENTS_COUNT - number of new comments;
  • TASK_CONTROL - start executing the task;
  • ADD_IN_REPORT - add to report;
  • FORKED_BY_TEMPLATE_ID - created from template;
  • TIME_ESTIMATE - estimated spent time;
  • TIME_SPENT_IN_LOGS - time spent from log;
  • MATCH_WORK_TIME - skip weekends;
  • FORUM_TOPIC_ID - forum topic ID;
  • FORUM_ID - forum ID;
  • SITE_ID - site ID;
  • SUBORDINATE - task of subordinate user;
  • FAVORITE - favorites;
  • VIEWED_DATE - date when viewed last;
  • SORTING - sorting index;
  • DURATION_PLAN - duration (plan);
  • DURATION_FACT - duration (actual);
  • DURATION_TYPE - duration type;
  • li>0 - seconds
  • 1 - minutes
  • 2 - hours
  • 3 - days
  • 4 - weeks
  • 5 - months
  • 6 - years
  • UF_CRM_TASK - bidding to CRM items.
  • By default, all uncomputable fields for the query main table.

    To get custom fields and bidding fields to CRM entities (UF_CRM_TASK), they can be directly indicated in SELECT. List of fields can be clarified by sending the request tasks.task.getFields.


    User Comments

    User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

    The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
    © «Bitrix24», 2001-2022
    Up