Define template for defect (844 Views)
Reply
Occasional Visitor
Thomas Nägeli
Posts: 2
Registered: ‎02-15-2011
Message 1 of 4 (844 Views)

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
Advisor
QCTechie
Posts: 18
Registered: ‎01-28-2011
Message 2 of 4 (844 Views)

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
philippe lebacq
Posts: 88
Registered: ‎12-05-2008
Message 3 of 4 (844 Views)

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
Thomas Nägeli
Posts: 2
Registered: ‎02-15-2011
Message 4 of 4 (844 Views)

Re: Define template for defect

Hi all,

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

Best
Thomas
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.