Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: Defects linked to Test Cases and to other Defects

$
0
0

Hi ,

 

Try the below Query.

 

SELECT
  "defect"."BG_BUG_ID" AS "id",
  "defect"."BG_RESPONSIBLE" AS "owner",
  "defect"."BG_STATUS" AS "status",
  "defect"."BG_DETECTED_BY" AS "detected_by",
  "linked_defect"."BG_BUG_ID" AS "linked_defect_id",
  "linked_defect"."BG_RESPONSIBLE" AS "linked_defect_owner",
  "linked_defect"."BG_DETECTED_BY" AS "linked_defect_detected_by",
  "linked_defect"."BG_STATUS" AS "linked_defect_status"
FROM
  BUG "defect"
  INNER JOIN LINK "defect_link" ON
                                     "defect"."BG_BUG_ID" = "defect_link"."LN_BUG_ID"
                                   AND
                                     "defect_link"."LN_ENTITY_TYPE" = 'BUG'
  
  INNER JOIN BUG "linked_defect" ON "linked_defect"."BG_BUG_ID" = "defect_link"."LN_ENTITY_ID"

 

or

 

SELECT
* from
LINK
INNER JOIN BUG ON ((LN_BUG_ID=BG_BUG_ID) OR LN_ENTITY_ID=BG_BUG_ID) AND LN_ENTITY_TYPE='BUG'


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>