SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2007
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Auto populate field value - Parent Req to Child ?

    Does anyone know if QC will automatically populate the value of a field (like Release) in the Child requirement if it is entered in the Parent requirement? I have set up my requirements module to model the Agile process and the Parent requirement is User Story and the child requirements are Story Tasks and Acceptance Criteria. If I select or change the Release field on the Parent Requirement, I want it to automatically change that field on all the Child Requirements too.
    Help...???
    Thanks,
    Trish

  2. #2
    Member
    Join Date
    Oct 2007
    Location
    TN, India
    Posts
    66
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Auto populate field value - Parent Req to Child ?

    Hi tjones,

    PFB code for changing the value in the child req.:

    Sub UpdateValue (reqID, relValue)
    Dim req, reqChildren
    Set req = TDConnection.ReqFactory.Item (reqID)
    req.Field("RQ_TARGET_REL") = relValue
    On Error Resume Next : Err.Clear
    req.Post
    If Err <> 0 Then
    MsgBox "Cannot update status of requirement #" & CStr (reqID) & vbCrLf & Err.Description
    Err.Clear
    End If
    On Error GoTo 0
    Set req = Nothing
    Set reqChildren = TDConnection.ReqFactory.GetChildrenList (reqID)
    For Each req in ReqChildren
    UpdateValue req.ID, relValue
    Next
    Set reqChildren = Nothing
    End Sub

    Sub Req_FieldChange(FieldName)
    On Error Resume Next
    If (Req_Fields("RQ_TARGET_REL").FieldName = FieldName) Then
    newRelValue = Req_Fields("RQ_TARGET_REL").Value
    FatherID = Req_Fields("RQ_REQ_ID").Value
    UpdateValue FatherID, newRelValue
    End If
    End sub


    Please use the above code and let me know.

    Thanks
    Vill
    Cognizant

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:10 PM.

Copyright BetaSoft Inc.