I would like to do a scrip so that when a test case status changes to 07 - Ready for production, it would send an email to specific person. Here is what I have for now:
Sub Requirements_Req_FieldChange(Status)
On Error Resume Next
if FieldName= ("RQ_REQ_STATUS").Value = "07" then
set rs = TDConnection.ReqFactory
set rst = rs.Item(Req_Fields.Field("RQ_REQ_ID").Value)
rst.Mail "[TDAdmin]", "", 0, "The Requirement " & rst.name & " Status Changed to Ready for production."
end if
On Error GoTo 0
End Sub