Custom report with RS-to-IN or TR-to-IN association

I'd like to make a custom report that basically has all the data Test Run Summary Report includes. Additionally I need one more column Incident that contains Incident ID if test run or step has failed and Incident has been created.

I can see from Test Run Details that the Incident is linked to specific test step, but I don't know how I can access the association data to actually insert IN on correct row. I presume I need to use Custom Section, but I'm unable to determine a correct query. Any ideas?