Web API: How to get the review id from the perforce change list number?

2013-02-27 Thread Steve
We have a perforce trigger that looks at the submitted change list number and makes an API call to review board to see if there is a corresponding review. If found, the url for the review is added to the submitted change list. Using the Web API 1.0, we use this url

Re: Web API: How to get the review id from the perforce change list number?

2013-02-27 Thread Steve
For some reason my initial post got mangled. Here it is again in briefer form: I need to be able to query the Web API to get the RB ID given a perforce change list number. With the 1.0 API, this url works: api/json/reviewrequests/repository/$repo/changenum/$changelist With the 2.0 API, I've

Re: Web API: How to get the review id from the perforce change list number?

2013-02-27 Thread Raja
You can add a status=submitted to the query string, so something like api/review-requests?changenum=$changeliststatus=submitted should get you the Submitted Requests. Same holds for discarded status as well. The default is pending, which is why you dont see the other requests. I dont see a way to

Re: Web API: How to get the review id from the perforce change list number?

2013-02-27 Thread Steve
Perfect! Thank you Raja. On Wednesday, February 27, 2013 8:53:10 AM UTC-8, Raja wrote: You can add a status=submitted to the query string, so something like api/review-requests?changenum=$changeliststatus=submitted should get you the Submitted Requests. Same holds for discarded status as