QC/ALM – Easiest way to create a template for Defect Description field?
Question ID: 104924
1
0

I’m trying to figure out the easiest way to create a Defect Description template. I want to add formatted headers like "Description," "Steps to Reproduce," "Expected Result," "Actual Result," etc. When a user creates a new Defect, how can I have this automatically populate in the Defect Description field?

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on March 25, 2013 7:08 pm
421 views
Answers (1)
2
Private answer

The easiest way would be to create a new Defect and enter your template information (headers, titles, etc.) and formatting (bold, italics, highlighting, font color, etc) into your Defect's Description field.

Make note of the Defect ID for this new ''template'' Defect you just created (in this example, let's use a Defect ID of 5).

Go to Project Customization (Tools > Customize) and open your Workflow Script Editor. In your Workflow script, add this line to your Defect Bug_New subroutine (change the item number to your Defect ID from above):

Bug_Fields(''BG_DESCRIPTION'').Value = TDConnection.BugFactory.Item(5).Field(''BG_DESCRIPTION'')

Save as a Minor Change, and now whenever a user creates a new Defect, it will grab your Defect Description ''template.''

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on March 25, 2013 7:09 pm
0
Works great, thanks!
( at March 25, 2013 7:10 pm)
EyeOnTesting

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

X
Scroll to Top