Simplified ALM defect automail
Question ID: 108930
0
0

We are using HP ALM for a highly secure project, which is also being used by our vendors. We would like to restrict the information that is shared in the defect emails that are sent out. We would like to leave the Description, Comments and History fields out of the emails. Is there a way to change the template of the email so that the Description, Comments and History information is not displayed in the email?

Marked as spam
Posted by (Questions: 239, Answers: 31)
Asked on April 12, 2019 9:26 pm
45 views
Answers (1)
0
Private answer

Hello. The following workflow script will send an email whenever a defect has been added or updated. The email will only contain the information that is listed below. You will need to place the workflow into the Bug_AfterPost Sub. If you wish to display less info in the email body, you can just remove the lines you wish to leave out of the email.

The subject line will display the following:
''Defect ID # has been added or updated.''

The body of the email will display the following defect details:

- Defect ID
- Status
- Assigned To User ID
- Severity
- Detected By User ID
- Detected on Date
- Modified

As I previously stated, add the script below to the AfterPost Sub in the Defects module script editor:
Dim tdc
Dim header
Dim body
Set tdc = TDConnection

header = ''Mail Header''
body = ''Mail Body''
tdc.SendMail ''alm_user_email_address'','' '', _
''Defect ID # '' & Bug_Fields(''BG_BUG_ID'').Value & '' has been added or updated.'', _

'''' & ''Defect Details: '' & '''' & _
''
'' & '''' & ''Defect ID - '' & '''' & Bug_Fields(''BG_BUG_ID'').Value & _
''
'' & '''' & ''Status - '' & '''' & Bug_Fields(''BG_STATUS'').Value & _
''
'' & '''' & ''Assigned To User ID - '' & '''' & Bug_Fields(''BG_RESPONSIBLE'').Value & _
''
'' & '''' & ''Severity - '' & '''' & Bug_Fields(''BG_SEVERITY'').Value & _
''
'' & '''' & ''Detected By User ID - '' & '''' & Bug_Fields(''BG_DETECTED_BY'').Value & _
''
'' & '''' & ''Detected on Date - '' & '''' & Bug_Fields(''BG_DETECTION_DATE'').Value & _
''
'' & '''' & ''Modified - '' & '''' & Bug_Fields(''BG_VTS'').Value & _
NULL,''HTML''
tdc = Nothing

Marked as spam
Posted by (Questions: 2, Answers: 300)
Answered on April 12, 2019 9:51 pm
EyeOnTesting

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

X
Scroll to Top