appendToRequirementDocument

Appends a requirement to the end of a requirement document or to a parent requirement in the document. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
requirementID long Unique record ID for the requirement to add.
documentID long Unique record ID for the document to add the requirement to.
parentRequirementID long Unique record ID for the parent requirement in the document. Set as 0 to append to the end of the document .

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

CRequirement req = ttsdk.getRequirement(cookie, 0, "Requirement summary", false);

 

CRequirementDocument reqDoc = ttsdk.getRequirementDocument(cookie, 0, "Requirement document name", false);

 

CRequirement parentReq = ttsdk.getRequirement(cookie, 0, "Requirement parent", false);

 

ttsdk.appendToRequirementDocument(cookie, req.recordid, reqDoc.recordid, parentReq.recordid);