0

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

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;
}

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.

flag

1 Answer

1

I would double check that author is not null.

link|flag
Bingo! That was it... Thanks! – saritha Sep 29 2010 at 21:04

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.