Documentation

task.item.getdescription

Attention! This method is deprecated and is no longer supported. It is recommended to use the methods tasks.task.*.

Returns task description

Parameters

ParameterDescription
TASKIDTask ID.
FORMATAvailable values:
  • 1 (corresponds to PHP constant CTaskItem::DESCR_FORMAT_RAW) — returns description in the same format as stored in Database (HTML, or BB-code); will not be sanitized;
  • 2 (corresponds to PHP constant CTaskItem::DESCR_FORMAT_HTML) — returns description in HTML format and processed by sanitizer (when enabled in the task module settings);
  • 3 (corresponds to PHP constant CTaskItem::DESCR_FORMAT_PLAIN_TEXT) — returns description as "flat" text (without HTML tags).

Attention! Query parameter sequence is mandatory. When the sequence not followed, the query will be executed with errors.

Example

BX24.callMethod(
   'task.item.getdescription',
   [13, 1],
   function(result)
    {
       console.info(result.data());
       console.log(result);
    }
); 


© «Bitrix24», 2001-2024
Up