Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Get linked Defects


#1

Hi! How can I get linked defects using TestRail API?


#2

Hi Andrew,

Thanks for your post! As defects are added/linked when adding results to tests, you would use TestRail’s get_results API methods to retrieve the list of linked defects for any specific test/case/run. The ‘defects’ field of the results response would contain the issue/bug IDs that were added to the test case if you used e.g. get_results_for_case, or for the entire test run if you use get_results_for_run, etc. You can learn more about the get_results methods on our website here:

http://docs.gurock.com/testrail-api2/reference-results#get_results

Hope this helps!

Regards,
Marco