跳到主要内容

发送评论到工作项

POST 

https://your-domain/openapi/v2/project/issues/:issueID/comments

发送评论到工作项

History

VersionChanges
v3.14.117, v3.15.26Added in: v3.14.117, v3.15.26
v6.30.0, v6.18.14修改参考例子中body为非数组形式

Request

Path Parameters

    issueID stringrequired

    工作项ID

Query Parameters

    teamID stringrequired

    团队ID

Body

required

要发送的评论信息

    text stringrequired

    Possible values: non-empty and <= 128 characters

    评论信息

    repliedMessageID string

    本次评论所回复评论的ID

Responses

请求成功

Schema

    result stringrequired

    本次请求结果,SUCCESS|FAIL

    errorCode string

    本次请求错误码

    errorMsg string

    本次请求错误信息

    errorData object

    本次请求错误元数据

curl -L 'https://your-domain/openapi/v2/project/issues/:issueID/comments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"text": "评论内容",
"repliedMessageID": "5f1b0b3b"
}'
Request Collapse all
Base URL
https://your-domain/openapi/v2
Auth
Parameters
— pathrequired
— queryrequired
Body required
{
  "text": "评论内容",
  "repliedMessageID": "5f1b0b3b"
}
ResponseClear

Click the Send API Request button above and see the response here!