BugCommitAfter not getting triggered in one particular case - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-05-19T23:01:56Z http://fogbugz.stackexchange.com/feeds/question/5026 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/5026/bugcommitafter-not-getting-triggered-in-one-particular-case BugCommitAfter not getting triggered in one particular case saritha 2010-09-29T17:30:49Z 2010-09-29T19:33:09Z <p>Hi, I have a very simple plugin for extending IPluginBugCommit. It is a test code, which captures some info and calls an external webservice to write to a file. I am calling an external webservice in BugCommitAFter</p> <pre><code>public void BugCommitAfter(FogCreek.FogBugz.Plugins.Entity.CBug bug, BugAction nBugAction, FogCreek.FogBugz.Plugins.Entity.CBugEvent bugevent, bool fPublic) { // load the Person object who commited this bugevent CPerson author = api.Person.GetPerson(bugevent.ixPerson); string info = string.Format( "In BugCommitAfter. BugEvent: {0}, BugAction: {1}, BugEventType: {2}, Person.Computer: {3}, Person.From {4}, Person.FullName: {5}", bugevent.ixBugEvent, nBugAction, bugevent.EventType, author.sComputer, author.sFrom, author.sFullName); using (Service service = new Service()) { service.CaptureData(info); } return; } </code></pre> <p>The plugin gets triggered in all cases except when I have an incoming email, with case number specified in the subject. Eg. Subject is Re:Test (Case 7) The incoming email is getting appended to the case, but the plugin code is not getting triggered and CaptureData is not doing what it is supposed to do. Any help is greatly appreciated.</p> http://fogbugz.stackexchange.com/questions/5026/bugcommitafter-not-getting-triggered-in-one-particular-case/5027#5027 Answer by Ted for BugCommitAfter not getting triggered in one particular case Ted 2010-09-29T19:33:09Z 2010-09-29T19:33:09Z <p>I would double check that author is not null.</p>