Hello
I'm trying to retrieve all of the open defects and their test sets, test instances, and the linked requirements. I am unable to do the latter part, altghouh I suppose it would require a trip thought the LINK table. Can anyone help, please? Thanks a lot!
SELECT BUG.BG_BUG_ID AS "Defect ID",
BUG.BG_SEVERITY AS Severity,
BUG.BG_STATUS AS "Defect Status",
ALL_LISTS.AL_DESCRIPTION as Subject,
CYCLE.CY_CYCLE AS "Test Set",
TEST.TS_NAME AS "Test Instance",
TESTCYCL.TC_STATUS AS "Test Result"
FROM BUG, TEST, V_LINK_TESTCYCL, TESTCYCL, CYCLE, ALL_LISTS
WHERE BUG.BG_BUG_ID = V_LINK_TESTCYCL.LN_BUG_ID
AND TESTCYCL.TC_TESTCYCL_ID = V_LINK_TESTCYCL.LN_TESTCYCL_ID
AND TESTCYCL.TC_TEST_ID = TEST.TS_TEST_ID
AND CYCLE.CY_CYCLE_ID = TESTCYCL.TC_CYCLE_ID
and TS_SUBJECT = AL_ITEM_ID
and bug.bg_status not in ('Closed', 'Closed - Rejected')