I'm trying to auto-populate the Release field in Requirements when another requirement is linked (Traced To). I am able to do this for 4 fields when a defect is linked to a req, but I can't figure it out when it is Req to Req.
- Here is my Req to Bug code
'Auto-populating 4 fields: Lead BA, Lead QA, Test Region & Linked Req ID from Requirements
Set td = TDConnection
Set bFact = td.BugFactory
Set bItem = bFact.Item(Bug_Fields.Field("BG_BUG_ID").Value)
Set bLinkFact = bItem.LinkFactory
Set bLinkList = bLinkFact.NewList("")
Set bLinkItem = bLinkList.Item(bLinkList.Count)
If bLinkItem.Field("LN_ENTITY_TYPE") = "Requirement" Then
Set rFact = td.ReqFactory
Set rItem = rFact.Item(bLinkItem.Field("LN_ENTITY_ID"))
bItem.Field("BG_USER_02") = rItem.Field("RQ_USER_15") 'Bug Lead BA FROM Req Lead BA
bItem.Field("BG_USER_16") = rItem.Field("RQ_USER_31") 'Bug Lead QA FROM Req Lead QA
bItem.Field("BG_USER_29") = rItem.Field("RQ_USER_52") 'Bug Test Region FROM REQ Test Region
bItem.Field("BG_USER_28") = rItem.Field("RQ_REQ_ID") 'Bug "Linked Req #" FROM Req ID
bItem.Post
End If
Any experts have an answer on this?
--
Thanks,
Mike