JSON API Get if comment/defect was accepted
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020
06:48 AM
11-24-2020
06:48 AM
JSON API Get if comment/defect was accepted
Is there a way from the JSON API to get if a comment or defect was marked as accepted?
Thanks
Solved! Go to Solution.
Labels:
- Labels:
-
Reviews
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2020
01:03 AM
11-26-2020
01:03 AM
Hello @katieh,
Unfortunately, the "getDefects" or "getComments" methods of the ReviewService interface don't return any info about the "Accept" status. You can try to use the "ReviewService.getReviewSummary" method instead and parse the information about the conversations. It will return all the information from a given review ID and will also contain the data about the "Accepted" comments and defects:
https://support.smartbear.com/collaborator/docs/custom-integrations/json-api/reference.html
Here is an example of the ReviewService.getReviewSummary command:
[ {"command" : "SessionService.authenticate",
"args":{"login":"admin","ticket":"0cd9a5d81e9aa74d36099ed3e8141a78"}},
{
"command" : "ReviewService.getReviewSummary",
"args":{"reviewId":"6","clientBuild" : 13301,"active" : true}
} ]
Regards,
Oleg Beriashvili
Technical Support Engineer
Oleg Beriashvili
Technical Support Engineer
