changeRequirementType
Changes the type of a requirement. A SOAP error envelope is returned if the operation fails.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
requirementID | long | Unique requirement record ID. |
newTypeName | string | Name of the requirement type to change the requirement to. Use getDropdownFieldForTable to retrieve a list of requirement types. |
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);
CFieldValue[] fields = ttsdk.getDropdownFieldValuesForTable(cookie, "Requirement", "Requirement Type");
string reqType = fields[0].value;
ttsdk.changeRequirementType(cookie, req.recordid, reqType);