This project has moved and is read-only. For the latest updates, please go here.

Could not find field containing observers

Sep 6, 2013 at 3:00 PM
Edited Sep 6, 2013 at 3:00 PM
I have installed TFS WI Watcher on TFS 2012 and am getting an error "Could not find field containing observers. Fieldname is: DNE.Observers" for the WI I modified. I have double checked the WIT and can find no errors in configuration. I did not modify the TFSWIWatcher.BL.dll.config or TFSWIWatcher.BL.dll.logconfig. Any ideas?
Coordinator
Sep 6, 2013 at 3:53 PM
Be sure thate the name of the field ist DNE.Observers. Use witexport to verify it. Alternatively try changing the config to use "Observers" as the field name without the DNE

Von meinem iPhone gesendet

Am 06.09.2013 um 16:01 schrieb "dtorg1955" <[email removed]>:

From: dtorg1955

I have installed TFS WI Watcher and am getting an error "Could not find field containing observers. Fieldname is: DNE.Observers" for the WI I modified. I have double checked the WIT and can find no errors in configuration. I did not modify the TFSWIWatcher.BL.dll.config or TFSWIWatcher.BL.dll.logconfig. Any ideas?
Sep 6, 2013 at 4:01 PM
The field is correct: DNE.Observers. I don't think that is the problem. Here is a more detailed log. Could it be the names in the field? What exactly is it excepting, the name or email (I tried both)?

Start: Getting observers
Start: Getting List of Observers.
Start: Checking if workitem of type Bug in project Grouper should be observed.
Finish: Workitem of type Bug in project Grouper is configured for being observed.
Getting field containing observers from workitem. Fieldname is: DNE.Observers
Start: Getting WorkItem with ID 11237 and Revision 4.
Finish: Getting WorkItem with ID 11237 and Revision 4.
Could not find field containing observers. Fieldname is: DNE.Observers
Finish: Getting List of Observers.
Finish: Getting observers
Start: Notifying
No observers found to notify!
Finish: Notifying
Start: Creating context
Start: Creating WorkItemChangedContext
Finish: Creating context
Coordinator
Sep 6, 2013 at 4:22 PM
Can you please send me the workitem definition using witexport?

Von meinem iPhone gesendet

Am 06.09.2013 um 17:02 schrieb "dtorg1955" <[email removed]>:

From: dtorg1955

The field is correct: DNE.Observers. I don't think that is the problem. Here is a more detailed log. Could it be the names in the field? What exactly is it excepting, the name or email (I tried both)?

Start: Getting observers
Start: Getting List of Observers.
Start: Checking if workitem of type Bug in project Grouper should be observed.
Finish: Workitem of type Bug in project Grouper is configured for being observed.
Getting field containing observers from workitem. Fieldname is: DNE.Observers
Start: Getting WorkItem with ID 11237 and Revision 4.
Finish: Getting WorkItem with ID 11237 and Revision 4.
Could not find field containing observers. Fieldname is: DNE.Observers
Finish: Getting List of Observers.
Finish: Getting observers
Start: Notifying
No observers found to notify!
Finish: Notifying
Start: Creating context
Start: Creating WorkItemChangedContext
Finish: Creating context
Sep 6, 2013 at 4:34 PM
Edited Sep 6, 2013 at 4:43 PM
  <FIELD name="Observers" refname="DNE.Observers" type="PlainText">
    <HELPTEXT>A list of workitem observers</HELPTEXT>
  </FIELD>
</FIELDS>
...
<FORM>
  <Layout>
...
      <Tab Label="Observers">
        <Control FieldName="DNE.Observers" Type="HtmlFieldControl" Label="Observers" LabelPosition="Top" Dock="Fill" />
      </Tab>
    </TabGroup>
  </Layout>
</FORM>
</WORKITEMTYPE>
</witd:WITD>
Coordinator
Sep 6, 2013 at 8:51 PM
You need have to use "Observers" in the config file for the field name insteand of "DNE.Observers"

Von meinem iPad gesendet

Am 06.09.2013 um 17:35 schrieb "dtorg1955" <[email removed]>:

From: dtorg1955

<?xml version="1.0" encoding="utf-8"?>
<witd:WITD application="Work item type editor" version="1.0" xmlns:witd="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
<WORKITEMTYPE name="Bug">
<DESCRIPTION>Describes a divergence between required and actual behavior, and tracks the work done to correct the defect and verify the correction.</DESCRIPTION>
<FIELDS>
  <FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" reportable="dimension">
    <HELPTEXT>The iteration within which this bug will be fixed</HELPTEXT>
  </FIELD>
  <FIELD name="Iteration ID" refname="System.IterationId" type="Integer" />
  <FIELD name="External Link Count" refname="System.ExternalLinkCount" type="Integer" />
  <FIELD name="Team Project" refname="System.TeamProject" type="String" reportable="dimension" />
  <FIELD name="Hyperlink Count" refname="System.HyperLinkCount" type="Integer" />
  <FIELD name="Attached File Count" refname="System.AttachedFileCount" type="Integer" />
  <FIELD name="Node Name" refname="System.NodeName" type="String" />
  <FIELD name="Area Path" refname="System.AreaPath" type="TreePath" reportable="dimension">
    <HELPTEXT>The area of the product with which this bug is associated</HELPTEXT>
  </FIELD>
  <FIELD name="Revised Date" refname="System.RevisedDate" type="DateTime" reportable="detail" />
  <FIELD name="Changed Date" refname="System.ChangedDate" type="DateTime" reportable="dimension" />
  <FIELD name="ID" refname="System.Id" type="Integer" reportable="dimension" />
  <FIELD name="Area ID" refname="System.AreaId" type="Integer" />
  <FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" syncnamechanges="true" />
  <FIELD name="Title" refname="System.Title" type="String" reportable="dimension">
    <HELPTEXT>Short description of the bug used to differentiate it in a list or report</HELPTEXT>
    <REQUIRED />
  </FIELD>
  <FIELD name="State" refname="System.State" type="String" reportable="dimension">
    <HELPTEXT>Proposed = for triage; Active = approved, not yet fixed; Resolved = fix not yet verified; Closed = fix verified</HELPTEXT>
  </FIELD>
  <FIELD name="Authorized Date" refname="System.AuthorizedDate" type="DateTime" />
  <FIELD name="Watermark" refname="System.Watermark" type="Integer" />
  <FIELD name="Rev" refname="System.Rev" type="Integer" reportable="dimension" />
  <FIELD name="Changed By" refname="System.ChangedBy" type="String" syncnamechanges="true" reportable="dimension">
    <ALLOWEXISTINGVALUE />
    <VALIDUSER />
  </FIELD>
  <FIELD name="Reason" refname="System.Reason" type="String" reportable="dimension">
    <HELPTEXT>The reason why the bug is in the current state</HELPTEXT>
  </FIELD>
  <FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
    <HELPTEXT>The person investigating or fixing the bug, or verifying the fix</HELPTEXT>
    <ALLOWEXISTINGVALUE />
    <VALIDUSER />
  </FIELD>
  <FIELD name="Work Item Type" refname="System.WorkItemType" type="String" reportable="dimension" />
  <FIELD name="Created Date" refname="System.CreatedDate" type="DateTime" reportable="dimension" />
  <FIELD name="Created By" refname="System.CreatedBy" type="String" syncnamechanges="true" reportable="dimension" />
  <FIELD name="Description" refname="System.Description" type="HTML" />
  <FIELD name="History" refname="System.History" type="History">
    <HELPTEXT>Discussion thread plus automatic record of changes</HELPTEXT>
  </FIELD>
  <FIELD name="Related Link Count" refname="System.RelatedLinkCount" type="Integer" />
  <FIELD name="Tags" refname="System.Tags" type="PlainText" />
  <FIELD name="State Change Date" refname="Microsoft.VSTS.Common.StateChangeDate" type="DateTime">
    <WHENCHANGED field="System.State">
      <SERVERDEFAULT from="clock" />
    </WHENCHANGED>
    <WHENNOTCHANGED field="System.State">
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Activated Date" refname="Microsoft.VSTS.Common.ActivatedDate" type="DateTime" reportable="dimension">
    <WHENNOTCHANGED field="System.State">
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Activated By" refname="Microsoft.VSTS.Common.ActivatedBy" type="String" syncnamechanges="true" reportable="dimension">
    <WHENNOTCHANGED field="System.State">
      <ALLOWEXISTINGVALUE />
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Resolved Date" refname="Microsoft.VSTS.Common.ResolvedDate" type="DateTime" reportable="dimension">
    <WHENNOTCHANGED field="System.State">
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Resolved By" refname="Microsoft.VSTS.Common.ResolvedBy" type="String" syncnamechanges="true" reportable="dimension">
    <WHENNOTCHANGED field="System.State">
      <ALLOWEXISTINGVALUE />
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Resolved Reason" refname="Microsoft.VSTS.Common.ResolvedReason" type="String" reportable="dimension">
    <HELPTEXT>The reason why the bug was resolved</HELPTEXT>
    <ALLOWEDVALUES expanditems="true">
      <LISTITEM value="As Designed" />
      <LISTITEM value="Cannot Reproduce" />
      <LISTITEM value="Deferred" />
      <LISTITEM value="Duplicate" />
      <LISTITEM value="Fixed" />
      <LISTITEM value="Obsolete" />
    </ALLOWEDVALUES>
    <FROZEN />
  </FIELD>
  <FIELD name="Closed Date" refname="Microsoft.VSTS.Common.ClosedDate" type="DateTime" reportable="dimension">
    <WHENNOTCHANGED field="System.State">
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Closed By" refname="Microsoft.VSTS.Common.ClosedBy" type="String" syncnamechanges="true" reportable="dimension">
    <WHENNOTCHANGED field="System.State">
      <ALLOWEXISTINGVALUE />
      <READONLY />
    </WHENNOTCHANGED>
  </FIELD>
  <FIELD name="Priority" refname="Microsoft.VSTS.Common.Priority" type="Integer" reportable="dimension">
    <HELPTEXT>Business importance. 1=must fix; 4=unimportant.</HELPTEXT>
    <REQUIRED />
    <ALLOWEDVALUES expanditems="true">
      <LISTITEM value="1" />
      <LISTITEM value="2" />
      <LISTITEM value="3" />
      <LISTITEM value="4" />
    </ALLOWEDVALUES>
    <DEFAULT from="value" value="2" />
  </FIELD>
  <FIELD name="Triage" refname="Microsoft.VSTS.Common.Triage" type="String" reportable="dimension">
    <HELPTEXT>Status of triaging the bug</HELPTEXT>
    <REQUIRED />
    <ALLOWEDVALUES expanditems="true">
      <LISTITEM value="Pending" />
      <LISTITEM value="More Info" />
      <LISTITEM value="Info Received" />
      <LISTITEM value="Triaged" />
    </ALLOWEDVALUES>
    <DEFAULT from="value" value="Pending" />
  </FIELD>
  <FIELD name="Severity" refname="Microsoft.VSTS.Common.Severity" type="String" reportable="dimension">
    <HELPTEXT>Assessment of the effect of the bug on the project</HELPTEXT>
    <REQUIRED />
    <ALLOWEDVALUES expanditems="true">
      <LISTITEM value="1 - Critical" />
      <LISTITEM value="2 - High" />
      <LISTITEM value="3 - Medium" />
      <LISTITEM value="4 - Low" />
    </ALLOWEDVALUES>
    <DEFAULT from="value" value="3 - Medium" />
  </FIELD>
  <FIELD name="Stack Rank" refname="Microsoft.VSTS.Common.StackRank" type="Double" reportable="dimension">
    <HELPTEXT>Work first on items with lower-valued stack rank. Set in triage.</HELPTEXT>
  </FIELD>
  <FIELD name="System Info" refname="Microsoft.VSTS.TCM.SystemInfo" type="HTML">
    <HELPTEXT>Test context, provided automatically by test</HELPTEXT>
  </FIELD>
  <FIELD name="Repro Steps" refname="Microsoft.VSTS.TCM.ReproSteps" type="HTML">
    <HELPTEXT>How to see the bug. End by contrasting expected with actual behavior.</HELPTEXT>
    <REQUIRED />
  </FIELD>
  <FIELD name="Found In" refname="Microsoft.VSTS.Build.FoundIn" type="String" reportable="dimension">
    <HELPTEXT>The build in which the bug was found</HELPTEXT>
    <SUGGESTEDVALUES expanditems="true">
      <LISTITEM value="<None>" />
    </SUGGESTEDVALUES>
    <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
      <GLOBALLIST name="Builds - TFSAdmin" />
    </SUGGESTEDVALUES>
    <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
      <GLOBALLIST name="Builds - Grouper" />
    </SUGGESTEDVALUES>
  </FIELD>
  <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
    <HELPTEXT>The build in which the bug was fixed</HELPTEXT>
    <SUGGESTEDVALUES expanditems="true">
      <LISTITEM value="<None>" />
    </SUGGESTEDVALUES>
    <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
      <GLOBALLIST name="Builds - TFSAdmin" />
    </SUGGESTEDVALUES>
    <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
      <GLOBALLIST name="Builds - Grouper" />
    </SUGGESTEDVALUES>
  </FIELD>
  <FIELD name="Original Estimate" refname="Microsoft.VSTS.Scheduling.OriginalEstimate" type="Double" reportable="measure" formula="sum">
    <HELPTEXT>The original estimate of units of work required to fix this bug</HELPTEXT>
  </FIELD>
  <FIELD name="Blocked" refname="Microsoft.VSTS.CMMI.Blocked" type="String" reportable="dimension">
    <ALLOWEDVALUES expanditems="true">
      <LISTITEM value="Yes" />
      <LISTITEM value="
Sep 6, 2013 at 9:38 PM
That worked. Thank you.