Quality Center / ALM Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Define template for defect

Occasional Visitor

Define template for defect

Hi all,

is it possible to create a template for the defect Description field, so that every time a new defect is created the description is prefilled with e.g. "system: ; interface: ...") ? If yes, how to do that?

Quality Center 10, premier edition.

Thank you and best
Thomas
3 REPLIES
Advisor

Re: Define template for defect

You can create a function which returns a string(template) in the defect's module. Declare a varaible and append everything you want to be displayed in the description field and return it. Call this function in "Bug_New" subroutine. That's it.
Regular Advisor Regular Advisor

Re: Define template for defect

Sub Defects_Bug_New
On Error Resume Next
x=AutoInsertRem("BG_DESCRIPTION", "Created")
On Error GoTo 0
End Sub
Function AutoInsertRem(FieldName, MyActionType)
Dim My_Description
My_Description = ""
My_Ressources_L1 = ""
My_Ressources_L2 = ""
My_Ressources_L3 = ""
My_Ressources_L4 = ""

My_Description = " " & MyActionType & " , by " & User.UserName & " on " & Cstr(Now()) & " :

"
'fill in any text you want to appear when a new defect is created
if FieldName = "BG_USER_25" then
My_Description = ""
My_Ressources_L1 = "
"

My_Ressources_L2 = " TCL

ENDTCL
"

My_Ressources_L3 = " RSC

ENDRSC
"
My_Ressources_L4 = " IMPACT

" _
& " Impact on Performance : __ (Y/N)
" _
& " Impact on data Volume : __ (Y/N)
" _
& "
ENDIMPACT
"

end if
'--------------------------
Bug_Fields(FieldName).Value = My_Description & My_Ressources_L1 & My_Ressources_L2 & My_Ressources_L3 & My_Ressources_L4
End Function
Occasional Visitor

Re: Define template for defect

Hi all,

thanx so much for your replies & help, will give the function a try.

Best
Thomas