汇总模式工作项工时详情
GEThttps://your-domain/openapi/v2/project/issues/:issueID/workLog/summary/timesSpent/:timesSpentID
汇总模式获取工作项工时详情
History
Version | Changes |
---|---|
v6.0.44 | Added in: v6.0.44 |
Request
Path Parameters
issueID stringrequired
工作项ID
timesSpentID stringrequired
工时ID
Query Parameters
teamID stringrequired
团队ID
Responses
- 200
- 401
- 403
- 404
- 500
请求成功
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
data
object
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
[
{
"result": "SUCCESS",
"data": {
"description": "Sample Description",
"id": "kkoi976k",
"hours": 1,
"startTime": 1714960800,
"owner": {
"id": "juyhntgb",
"name": "test"
},
"workLogRecordType": "timesSpent"
}
}
]
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://your-domain/openapi/v2/project/issues/:issueID/workLog/summary/timesSpent/:timesSpentID' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear