Get comments
Retrieve all comments from the source of a bug.
GET /api/bugs/{bug-id}/comments [?<CommonODataExpression>]
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID] |
URL Endpoint##
api/bugs/{bug-id}/comments
Method##
GET.
Parameters##
You can use $top and $skip to get the number of comments to retrieve for pagination.
Request Header##
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
Body##
This method does not supply the request body.
Response##
If successful, this method returns a 200 OK
response code and collection of comment objects of a bug in the response body.
Example
Request
curl --location --request GET 'https://teams.appvity.com/api/bugs/5f647f164d596392f55c6871/comments?$count=true&$top=50'\
--header 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'Content-Type: application/json' \
--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2'\
--header 'Cookie: graphNodeCookie=s%3AP6Q5jPUtwmssNyjIzya3wsfcRKXabP2_.0JO9NorfqswRNvufDBQ2P9RgcUJJFuePB102P%2FMPclY' \
Respond
{
"count": 2,
"comments": [
{
"id": 2,
"body": "<div>This is comment 1</div><div><br></div>",
"updated": "2020-09-15T03:08:43.17Z",
"created": "2020-09-15T03:08:43.17Z",
"author": {
"id": "0dc8bc36-6354-6e6b-b074-2297d0037b31",
"sourceId": "oliver@anadea.com",
"name": "Oliver Neal <oliver@anadea.com>",
"displayName": "Oliver Neal"
}
},
{
"id": 3,
"body": "<div>Are you done this bug?</div><div><br></div>",
"updated": "2020-09-15T03:08:58.887Z",
"created": "2020-09-15T03:08:58.887Z",
"author": {
"id": "0dc8bc36-6354-6e6b-b074-2297d0037b31",
"sourceId": "oliver@anadea.com",
"name": "Oliver Neal <oliver@anadea.com>",
"displayName": "Oliver Neal"
}
}
]
}