Ask a Question

JSON API Get if comment/defect was accepted

SOLVED
katieh
New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
OlegB
Staff

Re: JSON API Get if comment/defect was accepted

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

View solution in original post

1 REPLY 1
OlegB
Staff

Re: JSON API Get if comment/defect was accepted

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

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: