Skip to content

Commit

Permalink
Daily Incidents pdf report - widgets time range fix (demisto#32864)
Browse files Browse the repository at this point in the history
* updated time range to be last 24 hours on the "DailyIncidents" widgets

* RN

* Change "Total Incidents" to be "Total open incidents"

* Change "Total Incidents" to be "Total open incidents"

* changed forcerange to true for the daily widgets instead of using all time range
  • Loading branch information
ssokolovich authored Feb 13, 2024
1 parent 10a5b29 commit 984e015
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 47 deletions.
6 changes: 6 additions & 0 deletions Packs/CommonReports/ReleaseNotes/1_0_7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Reports

##### Daily incidents

- Fixed time range in the Daily widgets.
104 changes: 58 additions & 46 deletions Packs/CommonReports/Reports/report-dailyIncidentReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
},
"data": "# Daily Incidents\n\n{date}\n\n---",
"type": "placeholder",
"title": "dailyIncidentRepor Headline"
"title": "dailyIncidentReport Headline"
},
{
"layout": {
Expand Down Expand Up @@ -199,7 +199,7 @@
},
"data": "# **Last day incidents: {0}**",
"type": "placeholder",
"title": "dailyIncidentRepor Headline2"
"title": "dailyIncidentReport Headline2"
},
{
"layout": {
Expand Down Expand Up @@ -255,7 +255,7 @@
"query": {
"type": "incident",
"filter": {
"query": "",
"query": "-status:closed",
"period": {
"byFrom": "days",
"fromValue": null,
Expand All @@ -265,9 +265,9 @@
"toDate": null
}
},
"data": "# **Total incidents: {0}**",
"data": "# **Total open incidents: {0}**",
"type": "placeholder",
"title": "dailyIncidentReport Severity"
"title": "dailyIncidentReport Total Open Incidents"
},
{
"layout": {
Expand Down Expand Up @@ -305,9 +305,12 @@
"filter": {
"query": "",
"period": {
"byFrom": "days",
"fromValue": null,
"by": "day"
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": "",
"by": "hour"
},
"fromDate": null,
"toDate": null
Expand Down Expand Up @@ -352,9 +355,12 @@
"filter": {
"query": "",
"period": {
"byFrom": "days",
"fromValue": null,
"by": "day"
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": "",
"by": "hour"
},
"fromDate": null,
"toDate": null
Expand Down Expand Up @@ -399,9 +405,12 @@
"filter": {
"query": "",
"period": {
"byFrom": "days",
"fromValue": null,
"by": "day"
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": "",
"by": "hour"
},
"fromDate": null,
"toDate": null
Expand Down Expand Up @@ -447,9 +456,12 @@
"filter": {
"query": "",
"period": {
"byFrom": "days",
"fromValue": null,
"by": "day"
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": "",
"by": "hour"
},
"fromDate": null,
"toDate": null
Expand Down Expand Up @@ -493,7 +505,7 @@
},
"query": "-status:closed",
"modified": "2018-01-24T08:53:22.141025642Z",
"name": "dailyIncidentRepor Headline",
"name": "dailyIncidentReport Headline",
"dateRange": {
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
Expand Down Expand Up @@ -528,7 +540,7 @@
},
"query": "-status:closed",
"modified": "2018-01-24T08:57:30.006506045Z",
"name": "dailyIncidentRepor Headline2",
"name": "dailyIncidentReport Headline2",
"dateRange": {
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
Expand Down Expand Up @@ -637,19 +649,19 @@
"size": 0,
"dataType": "incidents",
"params": {
"text": "# **Total incidents: {0}**"
"text": "# **Total open incidents: {0}**"
},
"query": "",
"query": "-status:closed",
"modified": "2018-01-25T10:00:07.077147676Z",
"name": "dailyIncidentReport Severity",
"name": "dailyIncidentReport Total Open Incidents",
"dateRange": {
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
"period": {
"byTo": "",
"byFrom": "days",
"toValue": null,
"fromValue": null,
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": ""
},
"fromDateLicense": "0001-01-01T00:00:00Z"
Expand All @@ -662,7 +674,7 @@
},
{
"id": "5ae462c0-01b7-11e8-9918-2d303bb12520",
"forceRange": false,
"forceRange": true,
"x": 0,
"y": 2,
"i": "5ae462c0-01b7-11e8-9918-2d303bb12520",
Expand All @@ -683,10 +695,10 @@
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
"period": {
"byTo": "",
"byFrom": "days",
"toValue": null,
"fromValue": null,
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": ""
},
"fromDateLicense": "0001-01-01T00:00:00Z"
Expand All @@ -699,7 +711,7 @@
},
{
"id": "5ba40940-01b7-11e8-9918-2d303bb12520",
"forceRange": false,
"forceRange": true,
"x": 6,
"y": 2,
"i": "5ba40940-01b7-11e8-9918-2d303bb12520",
Expand All @@ -720,10 +732,10 @@
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
"period": {
"byTo": "",
"byFrom": "days",
"toValue": null,
"fromValue": null,
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": ""
},
"fromDateLicense": "0001-01-01T00:00:00Z"
Expand All @@ -736,7 +748,7 @@
},
{
"id": "665f6190-01b7-11e8-9918-2d303bb12520",
"forceRange": false,
"forceRange": true,
"x": 0,
"y": 4,
"i": "665f6190-01b7-11e8-9918-2d303bb12520",
Expand All @@ -757,10 +769,10 @@
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
"period": {
"byTo": "",
"byFrom": "days",
"toValue": null,
"fromValue": null,
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": ""
},
"fromDateLicense": "0001-01-01T00:00:00Z"
Expand All @@ -773,7 +785,7 @@
},
{
"id": "66e840a0-01b7-11e8-9918-2d303bb12520",
"forceRange": false,
"forceRange": true,
"x": 6,
"y": 4,
"i": "66e840a0-01b7-11e8-9918-2d303bb12520",
Expand All @@ -794,10 +806,10 @@
"fromDate": "0001-01-01T00:00:00Z",
"toDate": "0001-01-01T00:00:00Z",
"period": {
"byTo": "",
"byFrom": "days",
"toValue": null,
"fromValue": null,
"byTo": "days",
"byFrom": "hours",
"toValue": 0,
"fromValue": 24,
"field": ""
},
"fromDateLicense": "0001-01-01T00:00:00Z"
Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonReports/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Common Reports",
"description": "Frequently used reports pack.",
"support": "xsoar",
"currentVersion": "1.0.6",
"currentVersion": "1.0.7",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 984e015

Please sign in to comment.