API or SQL to get builds for a given issue?

Hi,
Is there an API call (Java or REST) that will return a list of builds that were related to a particular issue?  I'd like to try to put together an integration plugin for another company's issue tracker, where I could put a tab on the issue tracker's issue page that would show the builds that that issue was referenced in.

Similarly, is there a way to access a list of builds in which a particular change (combo of SVN Root and commit identifier) was listed?

Thanks,
Mark

Please sign in to leave a comment.