Bitrix24 REST API

task.commentitem.getlist

Returns the list of comments to a task.

Method parameters

ParameterDescription
TASKID Task identifier. A required parameter.
ORDER Array for result sorting. The field for sorting may take the following values:
  • ID – comment identifier;
  • AUTHOR_ID – comment author’s identifier;
  • AUTHOR_NAME – author’s name;
  • AUTHOR_EMAIL – author’s email ;
  • POST_DATE – comment posting date..
The sorting direction may take the following values:
  • asc – ascending;
  • desc – descending;
Optional. By default it is filtered by descending comment identifier.
FILTER The array of the type {"filtered_field": "field value" [, ...]}. Filtered field can take the following values:
  • ID – comment identifier;
  • AUTHOR_ID – identifier of a comment author;
  • AUTHOR_NAME – author’s name;
  • POST_DATE – comment posting date.
Filter type can be specified before the filtered field:
  • "!" – not equal;
  • "<" – less;
  • "<=" – less or equal;
  • ">" – more;
  • ">=" – more or equal.
filter values – a single value or an array.

Optional. By default the entries are not filtered.

Example

// Obtain all the comments for the task with ID=1 with ascending sorting by ID and filter by AUTHOR_ID

BX24.callMethod(
	'task.commentitem.getlist',
	[1, {'ID': 'asc'}, {'>AUTHOR_ID': 2}],
	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