- Community Home
- >
- Software
- >
- Products
- >
- Quality Center / ALM
- >
- Quality Center Support and News Forum
- >
- Define template for defect
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Define template for defect
(371 Views)
Reply
Topic Options
- Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Define template for defect
Post options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-15-2011 07:45 AM
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
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
Re: Define template for defect
Post options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-15-2011 08:45 AM
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.
Re: Define template for defect
Post options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-16-2011 12:03 AM
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
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
Re: Define template for defect
Post options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-16-2011 01:12 AM
Hi all,
thanx so much for your replies & help, will give the function a try.
Best
Thomas
thanx so much for your replies & help, will give the function a try.
Best
Thomas
