Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

SQL qeury to extract full requirements path

$
0
0

Hello

 

I'm trying to build an Excel report to show the status of all requirements listed in ALM. However, since I don't understand the way recursion works in the ALM database, I can't retrieve the full path of the requirements.

 

The path can be anything from two to five levels, e.g. :

 

Header

- Requirement

-- Detailed requirement 1 (optional)

--- Detailed requirement 2 (optional)

---- Detailed requirement 3 (optional)

 

The SQL statement currently looks like this:

 

SELECT distinct rq_req_id as "Int Req ID",
REQ.RQ_REQ_NAME as "Req ID",
req.rq_user_01 as "Req Priority",
req.rq_user_04 as "CR ID",
req.rq_user_02 as "Response Code",
req.rq_user_03 as "Sub-appendix 19",
RCYC_NAME AS "Release",
REQ.rq_req_reviewed as "Req Status",
REQ.RQ_REQ_STATUS AS "Req Coverage",
req.rq_user_05 as "Req Notes"


FROM REQ
left join REQ_CYCLES ON REQ.RQ_REQ_ID = REQ_CYCLES.RQC_REQ_ID
left JOIN RELEASE_CYCLES ON RCYC_ID = RQC_CYCLE_ID
left  JOIN RELEASES ON REL_ID = RELEASE_CYCLES.RCYC_PARENT_ID
left Join REQ_COVER on REQ.RQ_REQ_ID = REQ_COVER.RC_REQ_ID

where rq_type_id != 1

Order by RQ_REQ_NAME

 

Any help that would augment the results with one column containing all the requirement levels above the req id separated by e.g. double colons would be appreciated greatly.

 

Thanks a lot

Søren


Viewing all articles
Browse latest Browse all 5491

Trending Articles



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