"use strict";
var lang = XT.stringsFor("en_US", {
+ "_assignedIncidents": "Assigned Incidents",
"_crm": "CRM",
"_crmDescription": "Corporate Relationship Management",
"_highPriority": "High Priority",
"_incidentDefaultPublic": "Comment Default Public",
"_incidentStatusColors": "Incident Status Colors",
- "_openIncidents": "Open Incidents",
"_maintainEmailProfiles": "Maintain Email Profiles",
"_staleAnalysisWarning": "Free trial demo analysis data will not be updated from your live changes.",
"_viewEmailProfiles": "View Email Profiles"
// title is what show in the "add chart" picker on the
// dashboard and the chart is the widget to be added
newActions: [
- {name: "openIncidents", label: "_openIncidents".loc(), item: "XV.OpenIncidentBarChart"},
+ {name: "assignedIncidents", label: "_assignedIncidents".loc(), item: "XV.AssignedIncidentBarChart"},
{name: "opportunities", label: "_opportunities".loc(), item: "XV.OpportunityBarChart"}
]
});
XT.extensions.crm.initCharts = function () {
enyo.kind({
- name: "XV.OpenIncidentBarChart",
+ name: "XV.AssignedIncidentBarChart",
kind: "XV.DrilldownBarChart",
collection: "XM.IncidentListItemCollection",
- chartTitle: "_openIncidents".loc(),
+ chartTitle: "_assignedIncidents".loc(),
filterOptions: [
{ name: "all", parameters: [] },
{ name: "highPriority", parameters: [
{ name: "priority" },
{ name: "project" }
],
- // suppress closed incidents
+ // assigned incidents only
query: {
parameters: [{
attribute: "status",
- operator: "!=",
- value: "L"
+ operator: "=",
+ value: "A"
}],
}
});