Documentation

task.elapseditem.update

task.elapseditem.update(taskId, itemId, arFields)

Changes parameters of the specified time spent record.

Parameters

ParameterDescription
taskIdTask ID.
itemIdTime spent record ID.
arFieldsArray of time records and comments (SECONDS and COMMENT_TEXT). MINUTES may be used instead of SECONDS, but they cannot be used at the same time.

Attention! Compliance to parameter sequence in the request is mandatory. If sequence is not observed, the request will be completed with errors.

Example

BX24.callMethod(
   'task.elapseditem.update',
   [1, 204, {SECONDS: 666, COMMENT_TEXT: 'comment text' CREATED_DATE: '2016-01-20 17:26:37'}],
   function(result)	
       {
      console.info(result.data());
      console.log(result);
	}
   }
);


© «Bitrix24», 2001-2024
Up