Is there a way from the JSON API to get if a comment or defect was marked as accepted?
Thanks
Solved! Go to Solution.
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}
} ]
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}
} ]