Service Operation Workspace Dashboards

tomaslindev
Mega Guru

Hello, I am implementing a new dashboard for the Service Operations Workspace, I am creating everything from the UX Client Script Inlude "SowIncidentLandingPageUtils" belonging to the table "sys_ux_client_script_include_list.do". I have implemented a dashboard to indicate the incidents opened for more than 15 days and another for more than 7 days. I would need to implement another one opened for more than 15 days and 7 days by the user. The problem is that they all appear in both tabs, in the "Your work" tab and in the "Your team's work" tab. I have tried to change the "list view" in the code without success.

Any ideas?

Thank you very much in advance.

 

Recorte SOW.png

 

Code:

 

       {
                    "id": "days_incidents_7",
                    "tableName": "incident",
                    "tableDisplayValue": "Incidents opened more than 7 days",
                    "myWorkQuery": "opened_atMORETHANopened_at@day@after@7",
                    "myTeamQuery": "active=true^assigned_toISEMPTY^assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744",
                    "listView": mode == "your_work" ? "sow_landing_page_assigned" : "sow_landing_page",
                    "header": await helpers.translate("Incidents opened more than 7 days"),
                    "groupByField": "state",
                    "evamId": evamDef['incidentEvamDefinitionId'],
                    "updated_on": "^ORDERBYDESCsys_updated_on",
                },

         {
                    "id": "days_incidents_15",
                    "tableName": "incident",
                    "tableDisplayValue": "Incidents opened more than 15 days",
                    "myWorkQuery": "opened_atMORETHANopened_at@day@after@15",
                    "myTeamQuery": "active=true^assigned_toISEMPTY^assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744",
                    "listView": mode == "your_work" ? "sow_landing_page_assigned" : "sow_landing_page",
                    "header": await helpers.translate("Incidents opened more than 15 days"),
                    "groupByField": "state",
                    "evamId": evamDef['incidentEvamDefinitionId'],
                    "updated_on": "^ORDERBYDESCsys_updated_on",
                },

 

 

 

2 REPLIES 2

TEdwards
Kilo Sage

Not sure if you have already found an answer to this, but I see that you have both a "myWorkQuery" and a "myTeamQuery" for each visualization. Did you try creating separate visualizations, one with a "myWorkQuery" and the other with a "myTeamQuery"?

Thank you very much for your response.
In the end I was able to solve the problem using as a reference one of the dashboards that appeared differently in the two display tabs "Incidents assigned to you" and "Incidents assigned to your team". I modified it and improved the Query.