Bitrix24 REST API

task.elapseditem.getlist

Returns a list of entries about elapsed time for a task.

Method Parameters

ParameterDescription
TASKID Task identifier. Required parameter.
ORDER Array for result sorting. Sorting field may take the following values:
  • ID – identifier of the entry about elapsed time;
  • USER_ID – identifier of the user on whose behalf the entry about the elapsed time was made;
  • MINUTES – elapsed time, minutes;
  • SECONDS – elapsed time, seconds ;
  • CREATED_DATE – entry creation date;
  • DATE_START – start date;
  • DATE_STOP – end date.
Sorting direction can take the following values:
  • asc – ascending;
  • desc – descending;
Optional. By default it is filtered by descending of the entry elapsed time identifier.
FILTER Array of the time {"filtered_field": "filter value" [, ...]}. Filtered field can take the following values:
  • ID – comment identifier;
  • USER_ID – identifier of the user on whose behalf the entry about the elapsed time was made;
  • CREATED_DATE – entry creation date.
Filtration type may be indicated before the name of the field to be filtered:
  • "!" – not equal;
  • "<" – less;
  • "<=" – less or equal;
  • ">" – more;
  • ">=" – more or equal.
filter values - a single value or an array.

Optional. By default entries are not filtered.

Example

// Obtaining all entries about elapsed time with sorting by descending ID.
// Only entries with fewer than 50 IDs will be filtered.


BX24.callMethod(
   'task.elapseditem.getlist',
   [1, {'ID': 'desc'}, {'<ID': 50}],
   function(result){
      console.info(result.data());
      console.log(result);
   }
);


User comments

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrixฎ is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager