--- sidebar_position: 4 --- # Get task time accounting Get time accounting record data `Function GetTaskTimeAccounting(Val URL, Val TaskID, Val RecordID, Val Token = "") Export` | Parameter | CLI option | Type | Description | |-|-|-|-| | URL | --url | String | URL of webhook or a Bitrix24 domain, when token used | | TaskID | --task | String, Number | Task ID | | RecordID | --record | String, Number | Time record ID | | Token | --token | String | Access token, when app auth method used | Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
:::tip Method at API documentation: [task.elapseditem.get](https://dev.1c-bitrix.ru/rest_help/tasks/task/elapseditem/get.php) :::
```bsl title="Code example" URL = FunctionParameters["Bitrix24_URL"]; TaskID = FunctionParameters["Bitrix24_ElapsedTaskID"]; RecordID = FunctionParameters["Bitrix24_HookTimeID"]; Result = OPI_Bitrix24.GetTaskTimeAccounting(URL, TaskID, RecordID); OPI_TestDataRetrieval.WriteLog(Result, "GetTaskTimeAccounting (wh)", "Bitrix24"); URL = FunctionParameters["Bitrix24_Domain"]; Token = FunctionParameters["Bitrix24_Token"]; RecordID = FunctionParameters["Bitrix24_TimeID"]; Result = OPI_Bitrix24.GetTaskTimeAccounting(URL, TaskID, RecordID, Token); ``` ```sh title="CLI command example" oint bitrix24 GetTaskTimeAccounting --url "b24-ar17wx.bitrix24.by" --task "1088" --record "308" --token "fe3fa966006e9f06006b12e400000001000..." ``` ```json title="Result" { "result": { "ID": "42", "TASK_ID": "638", "USER_ID": "10", "COMMENT_TEXT": "Time spent on work", "SECONDS": "7200", "MINUTES": "120", "SOURCE": "2", "CREATED_DATE": "2024-06-12T17:36:21+00:00", "DATE_START": "2024-07-12T20:36:22+00:00", "DATE_STOP": "2024-07-12T20:36:22+00:00" }, "time": { "start": 1720816583.31997, "finish": 1720816583.36716, "duration": 0.0471861362457275, "processing": 0.0187540054321289, "date_start": "2024-07-12T20:36:23+00:00", "date_finish": "2024-07-12T20:36:23+00:00", "operating_reset_at": 1720817183, "operating": 0 } } ```