获取单个任务的计划工时总和
GET
https://open.teambition.com/api/plantime/aggregation/task/{taskId}该接口用于根据任务 ID 查询单个任务的计划工时总和。
请求参数
Path 参数
taskId
string
任务 id
Header 参数
Content-Type
string
可选
示例值:
application/json
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
是否执行成功
errorMessage
string
执行结果描述
result
array [object {8}]
必需
objectId
string
可选
工时关联的数据 id
objectType
string
工时关联的数据类型
plantime
integer
可选
总计工时时间(单位:毫秒)
count
integer
计划工时记录数量
objects
array [object {5}]
可选
submitterIds
array[string]
工时订阅者 id
userIds
array[string]
用户 id
dates
array[string]
日期
示例
{
"code": 200,
"errorMessage": "string",
"result": [
{
"objectId": "string",
"objectType": "task",
"plantime": 0,
"count": 0,
"objects": [
{
"plantimeId": "string",
"objectType": "task",
"objectId": "string",
"plantime": 0,
"submitterId": "string"
}
],
"submitterIds": [
"string"
],
"userIds": [
"string"
],
"dates": [
"2020-05-29T00:00:00.000Z"
]
}
]
}
最后修改时间: 3 年前