ALM Project Database Reference
td.REQ Table
Description
Details of individual requirements and the structure of the requirements tree.
Remarks

The tree structure is stored in two ways. First, each record holds a pointer to the parent in RQ_FATHER_ID. Within the children of each parent, the order is set with RQ_ORDER_ID. Thus, a self-join between REQ parent and REQ child ordered by child.RQ_FATHER_ID, child.RQ_ORDER_ID can be used to recreate the tree.

The second way the tree is stored is in RQ_REQ_PATH. The highest level nodes (RQ_FATHER_ID = -1) are ordered from AAA to ZZZ. Each child node down the tree inherits the parent path, and within the parent node, the requirements are ordered AAA to ZZZ where the current level numeration is concatenated to the inherited path. For example, the child requirements of the first node (AAA) have paths of AAAAAA, AAAAAB, AAAAAC, and so on. The characters V and W are not used.

Use of a self-join is easy to program when recreating the entire tree or a sub-tree. The path can be used when looking for the children of a given node since the child paths are the parent path plus three more characters.

To identify the tests and test steps that cover the requirements, see the REQ_COVER Table.

Multiple values for fields are maintained in the REQ_MULTIVALUE Table.

Many of the integer values are ENUMs. For possible values, see the API reference.

Columns
 Column NameDescriptionDatatypeLengthAllow NullsDefaultFormula
Primary Key RQ_REQ_IDThe record ID.int4   
 RQ_FATHER_IDThe ID of the requirement for which this requirement is a sub-requirement. Top level requirements have a father ID of -1.int4  
 RQ_ORDER_IDThe order in which the requirement appears in the user interface among other requirements at the same level of the requirements hierarchy.int4  
 RQ_ISTEMPLATE

For backward compatibility. Field may be removed in future version.

int4  
 RQ_REQ_COMMENTThe requirement comment.varchar16  
 RQ_REQ_REVIEWEDIndicates whether or not the user responsible for the project has reviewed the requirement.
The values are from the Review Status custom list.
Typical values are:  Changed, Not Reviewed, Reviewed.
varchar255  
 RQ_REQ_PATHSee table remarks.varchar255   
 RQ_REQ_STATUS

The aggregated status of previous runs of tests in the requirement coverage. Indicates whether any test that covers the requirement fails.

The values are from the Status custom list. Typical values are: No Run, Failed, Passed, Not Completed, N/A. In addition to the values from the list, the Not Covered value can be assigned.

varchar255  
 RQ_REQ_PRIORITYThe requirement priority level.
The values are from the Priority custom list.
Typical values are: 1-Low, 2-Medium, 3-High, 4-Very High, 5-Urgent.
varchar255  
 RQ_REQ_TYPEObsolete. In previous versions, the requirement type. The values are from the Requirement Type custom list.
Typical values are: Change, Functional, Guideline, Quality, Standard, System.
varchar255  
 RQ_REQ_PRODUCTThe product for which the requirement is designed.varchar255  
 RQ_REQ_NAMEThe name assigned to the requirement by the tester who designed the requirement.varchar255  
 RQ_REQ_AUTHORThe user name of the person who designed the requirement.varchar255  
 RQ_RBT_IGNORE_IN_ANALYSISA value of Y indicates that this requirement is not included in risk-based quality management analysis regardless of filter and other settings.varchar1  
 RQ_RBT_BSNS_IMPACTThe Business Criticality value calculated by ALM. A value of enum TD_RBT_BI_LEVELS.varchar1  
 RQ_RBT_CUSTOM_BSNS_IMPACT

A Business Criticality value set by a user.  A value of enum TD_RBT_BI_LEVELS.

varchar1  
 RQ_RBT_USE_CUSTOM_BSNS_IMPACT

If true, RQ_RBT_CUSTOM_BSNS_IMPACT is used.

If false, RQ_RBT_BSNS_IMPACT is used.

varchar1  
 RQ_RBT_EFFECTIVE_BSNS_IMPACTThe Business Criticality value used by the risk-based quality management analysis algorithm to analyze the Testing Level and testing time of this requirement.  The value depends on the RQ_RBT_USE_CUSTOM_BSNS_IMPACT setting.varchar1  
 RQ_RBT_FAIL_PROB

The Failure Probability value calculated by ALM.  A value of enum TD_RBT_FP_LEVELS.

varchar1  
 RQ_RBT_CUSTOM_FAIL_PROB

A Failure Probability value set by a user. A value of enum TD_RBT_FP_LEVELS.

varchar1  
 RQ_RBT_USE_CUSTOM_FAIL_PROB

If true, RQ_CUSTOM_FAIL_PROB is used.

If false, RQ_FAIL_PROB is used.

varchar1  
 RQ_RBT_EFFECTIVE_FAIL_PROBThe Failure Probability value used by the risk-based quality management analysis algorithm. The value depends on the RQ_RBT_USE_CUSTOM_FAIL_PROB setting.varchar1  
 RQ_RBT_RISK

The Risk calculated by ALM. A value of enum TDAPI_RBT_RISK_LEVELS.

varchar1  
 RQ_RBT_CUSTOM_RISK

A Risk value entered by a user. A value of enum TDAPI_RBT_RISK_LEVELS.

varchar1  
 RQ_RBT_USE_CUSTOM_RISKIf Y, use the RQ_RBT_CUSTOM_RISK instead of the calculated risk.varchar1  
 RQ_RBT_EFFECTIVE_RISKThe Risk value used by the risk-based quality management analysis algorithm to analyze the Testing Level and testing time of this requirement.  The value depends on the RQ_RBT_USE_CUSTOM_RISK setting.varchar1  
 RQ_RBT_FUNC_CMPLX

The Functional Complexity calculated by ALM. A value of enum TDAPI_RBT_FC_LEVELS.

varchar1  
 RQ_RBT_CUSTOM_FUNC_CMPLX

A Functional Complexity value entered by a user. A value of enum TDAPI_RBT_FC_LEVELS.

varchar1  
 RQ_RBT_USE_CUSTOM_FUNC_CMPLXIf Y, use the RQ_RBT_CUSTOM_FUNC_CMPLX instead of the calculated Functional Complexity.varchar1  
 RQ_RBT_EFFECTIVE_FUNC_CMPLXThe Functional Complexity value used by the risk-based quality management analysis algorithm to analyze the Testing Level and testing time of this requirement.  The value depends on the RQ_RBT_USE_CUSTOM_FUNC_CMPLX setting.varchar1  
 RQ_RBT_TESTING_LEVEL

Testing Level set by the risk-based quality management analysis.  A value of enum TD_RBT_TESTING_LEVELS.

varchar70  
 RQ_RBT_CUSTOM_TESTING_LEVEL

Testing Level value set by a user. A value of enum TD_RBT_TESTING_LEVELS.

varchar70  
 RQ_RBT_TESTING_HOURSThe testing time that was estimated for this requirement by the risk-based quality management analysis.int4  
 RQ_RBT_CUSTOM_TESTING_HOURSTesting time value set by a user.int4  
 RQ_RBT_USE_CUSTOM_TL_AND_TE

Indicates whether to use custom or calculated Testing Level and testing time for risk-based quality management calculations.

varchar1  
 RQ_RBT_RND_ESTIM_EFFORT_HOURSEstimated development time.int4  
 RQ_RBT_ASSESSMENT_DATA

The values assigned to the risk-based quality management assessment criteria. Edit this value in the ALM user interface. Do not to write directly to the database.

varchar16  
 RQ_RBT_ANALYSIS_PARENT_REQ_IDThe RQ_REQ_ID of the requirement on which was performed the last analysis that was used to calculate the RQ_TESTING_LEVEL and RQ_TESTING_HOURS fields of this requirement.int4  
 RQ_RBT_ANALYSIS_SETUP_DATA

The settings used to perform the last risk-based quality management analysis of the sub-tree of this requirement, including the filter, the policy, and the allocated time.

Edit this value in the ALM user interface. Do not write directly to the database.

varchar16  
 RQ_RBT_ANALYSIS_RESULT_DATA

The aggregated results of the latest risk-based quality management analysis.

Edit this value in the ALM user interface. Do not write directly to the database.

varchar16  
 RQ_RBT_LAST_ANALYSIS_DATEThe date and time of the last analysis.datetime4  
 RQ_USER_01User-defined field.varchar40  
 RQ_USER_02User-defined field.varchar255  
 RQ_USER_03User-defined field.varchar255  
 RQ_USER_04User-defined field.varchar255  
 RQ_USER_05User-defined field.varchar255  
 RQ_USER_06User-defined field.varchar255  
 RQ_USER_07User-defined field.varchar255  
 RQ_USER_08User-defined field.varchar255  
 RQ_USER_09User-defined field.varchar255  
 RQ_USER_10User-defined field.varchar40  
 RQ_USER_11User-defined field.varchar40  
 RQ_USER_12User-defined field.varchar40  
 RQ_REQ_VER_STAMPThe revision number of this requirement. Increments each time the record is updated.int4  
 RQ_ATTACHMENTA value of Y indicates that the requirement has at least one attachment.varchar1  
 RQ_REQ_DATEThe date the requirement was created according to the database server clock.datetime4  
 RQ_REQ_TIMEThe time the requirement was created according to the database server clock.varchar10  
 RQ_NO_OF_SONSThe number of requirements that have this requirement as a parent requirement, that is, have their RQ_FATHER_ID field set to this requirement’s ID.int4  
 RQ_IS_FOLDERObsolete. May be deleted in a future version.varchar1  
 RQ_VTSThe time stamp of the last time the record was updated according to the database server clock.varchar20  
 RQ_USER_13User-defined field.varchar40  
 RQ_USER_14User-defined field.varchar40  
 RQ_USER_15User-defined field.varchar40  
 RQ_USER_16User-defined field.varchar40  
 RQ_USER_17User-defined field.varchar40  
 RQ_USER_18User-defined field.varchar40  
 RQ_USER_19User-defined field.varchar40  
 RQ_USER_20User-defined field.varchar40  
 RQ_USER_21User-defined field.varchar40  
 RQ_USER_22User-defined field.varchar40  
 RQ_USER_23User-defined field.varchar40  
 RQ_USER_24User-defined field.varchar40  
 RQ_REQUEST_IDThe ITG request ID. Used internally for ITG-QC integration.int4  
 RQ_TEXT_SYNCFor internal use. Do not change data.varchar1  
 RQ_REQUEST_SERVERThe URL of the ITG server. Used internally for ITG-QC integration.varchar120  
 RQ_REQUEST_TYPEITG request type. Used internally for ITG-QC integration.varchar120  
 RQ_REQUEST_STATUSITG request status. Used internally for ITG-QC integration.varchar40  
 RQ_REQUEST_UPDATESITG request updates information. Used internally for ITG-QC integration.varchar120  
 RQ_REQUEST_ASSIGN_TOThe user to whom the requirement is assigned.varchar120  
 RQ_REQUEST_NOTEThe notes added to the request in ITG.varchar16  
 RQ_TYPE_ID

The REQ_TYPE.TPR_TYPE_ID.

A value of 0 indicates that the requirement type is not defined.

int4   
 RQ_TARGET_RCYC_VARCHARThe IDs of the ReleaseCycles this requirement is associated with.varchar4000  
 RQ_TARGET_REL_VARCHARThe IDs of the Releases this requirement is associated with.varchar4000  
 RQ_TARGET_RCYCFor internal use. Do not write to this field. The link to the target cycle is in the td.REQ_CYCLES Table.int4  
 RQ_TARGET_RELFor internal use. Do not write to this field. The link to the target release is in the td.REQ_RELEASES Tableint4  
 RQ_DEV_COMMENTSComments about the requirement.varchar16  
 RQ_HAS_RICH_CONTENT

Requirement has rich-text content.

The use of this field may be discontinued in future versions.

varchar1  
 RQ_VC_VERSION_NUMBERThe version ID of the entity.int4  
 RQ_VC_STATUSThe version status: Checked in, checked out, or read only.varchar20  
 RQ_VC_CHECKIN_USER_NAMEThe user who checked in this version of the item. If this item has not been checked in, the field is blank.varchar60  
 RQ_VC_CHECKIN_DATEThe date this version was checked in according to the server clock.datetime4  
 RQ_VC_CHECKIN_TIMEThe time this version was checked in according to the server clock.varchar10  
 RQ_VC_CHECKIN_COMMENTSComments.The user's comments when checking in the item.varchar16  
 RQ_VC_CHECKOUT_USER_NAMEThe user who checked out the item under version control. If the item is not checked out, this field is blank.varchar60  
 RQ_VC_CHECKOUT_DATEThe date the version was checked out according to the server clock.datetime4  
 RQ_VC_CHECKOUT_TIMEThe time this version was checked out according to the server clock.varchar10  
 RQ_VC_CHECKOUT_COMMENTSComments.The user's comments when checking out the item.varchar16  
 RQ_REQ_RICH_CONTENTHTML data.varchar16  
Indexes
Triggers
TriggerDescription
AUTR81022_REQ 
MVTR_REQ 
Objects that depend on td.REQ
 Database ObjectObject TypeDescriptionDep Level
AUTR81022_REQ triggerAUTR81022_REQTrigger 1
MVTR_REQ triggerMVTR_REQTrigger 1
Objects that td.REQ depends on
 Database ObjectObject TypeDescriptionDep Level
td.AUDIT_LOG tabletd.AUDIT_LOGTableEvents on which history is recorded.1
td.AUDIT_PROPERTIES tabletd.AUDIT_PROPERTIESTableDetails of the changes recorded in the AUDIT_LOG table.1
td.REQ_MULTIVALUE tabletd.REQ_MULTIVALUETableMultiple values for requirement records.1
td.REQ_TYPE tabletd.REQ_TYPETableTypes of requirements.1
See Also