
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello ,
I am trying to get extract of defects linked to the test cases.
However, when the testers log a defect directly by failing the test step and so the defect is linked to RUN as an indirect entity, which is making it difficult to fetch the defects.
Can someone please help me writing the query to fetch the defects and test case ID, where the defect is an indirect defect.. i.e. Link Entity Type = "STEP"
Also, can someone help me in logging a defect directly as a direct link, i.e. Link Entity Type = "CYCLE"
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hey...
I got the query for the same.
SELECT b.BG_Bug_ID, B.BG_Status, t.Ts_Name
FROM LINK L, step S, RUN R, Test T, bug b
where l.ln_entity_type = 'STEP'
and l.ln_entity_id = s.st_id
and S.ST_run_ID = R.RN_run_ID
and r.RN_Test_ID = T.TS_Test_ID
and l.ln_bug_id = b.bg_bug_ID
and b.bg_project = 'Sample'
However, i am still looking for the answer regarding Defect tagged to "CYCL"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hey...
I got the query for the same.
SELECT b.BG_Bug_ID, B.BG_Status, t.Ts_Name
FROM LINK L, step S, RUN R, Test T, bug b
where l.ln_entity_type = 'STEP'
and l.ln_entity_id = s.st_id
and S.ST_run_ID = R.RN_run_ID
and r.RN_Test_ID = T.TS_Test_ID
and l.ln_bug_id = b.bg_bug_ID
and b.bg_project = 'Sample'
However, i am still looking for the answer regarding Defect tagged to "CYCL"