<?xml version="1.0" encoding="utf-8"?>
<savedquery>
  <IsCustomizable>1</IsCustomizable>
  <CanBeDeleted>1</CanBeDeleted>
  <isquickfindquery>0</isquickfindquery>
  <isprivate>0</isprivate>
  <isdefault>0</isdefault>
  <returnedtypecode>112</returnedtypecode>
  <savedqueryid>{be070e8c-283a-e611-8120-127b25dcbde7}</savedqueryid>
  <layoutxml>
    <grid name="resultset" object="112" jump="title" select="1" preview="1" icon="1">
      <row name="result" id="incidentid">
        <cell name="vhacrm_daysopen_number" width="100" />
        <cell name="ticketnumber" width="150" />
        <cell name="statuscode" width="100" />
        <cell name="ownerid" width="100" />
        <cell name="createdon" width="100" />
      </row>
    </grid>
  </layoutxml>
  <querytype>0</querytype>
  <fetchxml>
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
      <entity name="incident">
        <attribute name="ownerid" />
        <attribute name="vhacrm_daysopen_number" />
        <attribute name="createdon" />
        <attribute name="statuscode" />
        <attribute name="ticketnumber" />
        <order attribute="vhacrm_daysopen_number" descending="true" />
        <filter type="and">
          <condition attribute="statecode" operator="eq" value="0" />
        </filter>
        <link-entity name="systemuser" from="systemuserid" to="owninguser" alias="aa">
          <link-entity name="teammembership" from="systemuserid" to="systemuserid" visible="false" intersect="true">
            <link-entity name="team" from="teamid" to="teamid" alias="ab">
              <filter type="and">
                <condition attribute="isdefault" operator="eq" value="0" />
              </filter>
              <link-entity name="teammembership" from="teamid" to="teamid" visible="false" intersect="true">
                <link-entity name="systemuser" from="systemuserid" to="systemuserid" alias="ac">
                  <filter type="and">
                    <condition attribute="systemuserid" operator="eq-userid" />
                  </filter>
                </link-entity>
              </link-entity>
            </link-entity>
          </link-entity>
        </link-entity>
        <attribute name="incidentid" />
      </entity>
    </fetch>
  </fetchxml>
  <IntroducedVersion>1.1.0.6</IntroducedVersion>
  <LocalizedNames>
    <LocalizedName description="Active Requests Assigned to User &amp; Team" languagecode="1033" />
  </LocalizedNames>
</savedquery>