New Linked Defect – make default Summary value the linked Requirement name?
Question ID: 104667
1
0

I’m trying to make the default value of the Defect "Summary" field the same as the Requirement name (only when creating a new Defect linked to the Requirement).

Having some trouble doing this via Workflow…if I set the default value to a certain text value, it’s dependent on the linked Requirement (and only when linking a new Defect). Any help?

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on October 29, 2012 11:24 am
63 views
Answers (1)
1
Private answer

First, define a global variable in your Workflow Common script (e.g., named `reqName`).

Then, in `Req_MoveTo`, use this variable to set a value:

reqName = Req_Fields(''RQ_REQ_NAME'').Value

Next, in `Bug_New`, set the ''Summary'' field value to your variable:

Bug_Fields(''BG_SUMMARY'').Value = reqName

Finally, make sure you reset the variable when leaving the Requirements module (you don't want an old requirement name turning up when creating a defect from another module).

So, in `ExitModule`, add the following:

reqName = ''''

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on October 29, 2012 11:28 am
0
Tested and working! Thanks!
( at November 2, 2012 2:15 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top