Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

Send Auto Email in Bug_AfterPost event

$
0
0

I have written a code in Bug_AfterPost event to Send Auto Email when new defect is submmitted.

Sub Bug_AfterPost
On Error Resume Next

if Bug_Fields.Field("BG_Status").Value = "New" Then

' Send email

end if

I am able to send auto emails when new defect is raised. However email is also sent if Assigned to field is changed later and cursor moved to other row.

I want emails to go only when new defect is submitted. How can i restrict this event not to execute if any changes in existing defect.

Thanks 


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>