Update fields across modules for linked entities
Is it possible to have fields update in one module based on updates that occur in another module?
Requirement Status updated to "In Progress"
Defect Status automatically updates to "In Progress"
We have users that submit defects to QC. These defects are evaluated and may become new Requirements. Currently we are linking the original defect(s) to the new requirement.
There's lots of info I've found and I understand customizing code to relate/trigger/update fields within the same module, but I couldn't find anything discussing across modules and I am having trouble with:
A - Making the leap across modules (I'm assuming I just need to correctly reference the necessary Module and Field)
B - Figuring out how to identify and update only those linked entities
Re: Update fields across modules for linked entities
I also have this which I believe is getting me in the ballpark:
Function Req_FieldCanChange(FieldName, NewValue)
On Error Resume Next
If FieldName = "RQ_REQ_STATUS" AND NewValue="In Progress" Then
'Get reqFactory object
set reqFact = TDConnection.reqFactory
'Get the current req object
Set lst = reqFact.NewList(Req_Fields("RQ_REQ_ID").Value)
Set objReq = lst.Item(1)
'Check if this req has any linked bug(s) or not
If objReq.HasLinkage = True