curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues/{issue}:comment \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"comment": "<string>",
"payload": "<string>",
"approval": {
"status": "STATUS_UNSPECIFIED"
},
"issueUpdate": {
"fromTitle": "<string>",
"toTitle": "<string>",
"fromDescription": "<string>",
"toDescription": "<string>",
"fromStatus": "ISSUE_STATUS_UNSPECIFIED",
"toStatus": "ISSUE_STATUS_UNSPECIFIED",
"fromLabels": [
"<string>"
],
"toLabels": [
"<string>"
]
},
"stageEnd": {
"stage": "<string>"
},
"taskUpdate": {
"tasks": [
"<string>"
],
"fromSheet": "<string>",
"toSheet": "<string>",
"toStatus": "STATUS_UNSPECIFIED"
},
"taskPriorBackup": {
"task": "<string>",
"tables": [
{
"schema": "<string>",
"table": "<string>"
}
],
"originalLine": 123,
"database": "<string>",
"error": "<string>"
}
}
'{
"name": "<string>",
"comment": "<string>",
"payload": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"creator": "<string>",
"approval": {
"status": "STATUS_UNSPECIFIED"
},
"issueUpdate": {
"fromTitle": "<string>",
"toTitle": "<string>",
"fromDescription": "<string>",
"toDescription": "<string>",
"fromStatus": "ISSUE_STATUS_UNSPECIFIED",
"toStatus": "ISSUE_STATUS_UNSPECIFIED",
"fromLabels": [
"<string>"
],
"toLabels": [
"<string>"
]
},
"stageEnd": {
"stage": "<string>"
},
"taskUpdate": {
"tasks": [
"<string>"
],
"fromSheet": "<string>",
"toSheet": "<string>",
"toStatus": "STATUS_UNSPECIFIED"
},
"taskPriorBackup": {
"task": "<string>",
"tables": [
{
"schema": "<string>",
"table": "<string>"
}
],
"originalLine": 123,
"database": "<string>",
"error": "<string>"
}
}Adds a comment to an issue. Permissions required: bb.issueComments.create
curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues/{issue}:comment \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"comment": "<string>",
"payload": "<string>",
"approval": {
"status": "STATUS_UNSPECIFIED"
},
"issueUpdate": {
"fromTitle": "<string>",
"toTitle": "<string>",
"fromDescription": "<string>",
"toDescription": "<string>",
"fromStatus": "ISSUE_STATUS_UNSPECIFIED",
"toStatus": "ISSUE_STATUS_UNSPECIFIED",
"fromLabels": [
"<string>"
],
"toLabels": [
"<string>"
]
},
"stageEnd": {
"stage": "<string>"
},
"taskUpdate": {
"tasks": [
"<string>"
],
"fromSheet": "<string>",
"toSheet": "<string>",
"toStatus": "STATUS_UNSPECIFIED"
},
"taskPriorBackup": {
"task": "<string>",
"tables": [
{
"schema": "<string>",
"table": "<string>"
}
],
"originalLine": 123,
"database": "<string>",
"error": "<string>"
}
}
'{
"name": "<string>",
"comment": "<string>",
"payload": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"creator": "<string>",
"approval": {
"status": "STATUS_UNSPECIFIED"
},
"issueUpdate": {
"fromTitle": "<string>",
"toTitle": "<string>",
"fromDescription": "<string>",
"toDescription": "<string>",
"fromStatus": "ISSUE_STATUS_UNSPECIFIED",
"toStatus": "ISSUE_STATUS_UNSPECIFIED",
"fromLabels": [
"<string>"
],
"toLabels": [
"<string>"
]
},
"stageEnd": {
"stage": "<string>"
},
"taskUpdate": {
"tasks": [
"<string>"
],
"fromSheet": "<string>",
"toSheet": "<string>",
"toStatus": "STATUS_UNSPECIFIED"
},
"taskPriorBackup": {
"task": "<string>",
"tables": [
{
"schema": "<string>",
"table": "<string>"
}
],
"originalLine": 123,
"database": "<string>",
"error": "<string>"
}
}A comment on an issue.
Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid}
The text content of the comment.
TODO: use struct message instead.
Approval event.
Show child attributes
Issue update event.
Show child attributes
Stage end event.
Show child attributes
Task update event.
Show child attributes
Task prior backup event.
Show child attributes
OK
A comment on an issue.
Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid}
The text content of the comment.
TODO: use struct message instead.
Format: users/{email}
Approval event.
Show child attributes
Issue update event.
Show child attributes
Stage end event.
Show child attributes
Task update event.
Show child attributes
Task prior backup event.
Show child attributes
Was this page helpful?