SOW - Donut Repeater assistance needed - UI Builder Data source help

Community Alums
Not applicable

I am trying to find out where the data source is for the Repeater -> Donut on the Service Desk Landing Page for Service Operation Workspace.  I need to take out the Incident SLA and replace it with task - (some filters on it).  I am fairly new to repeaters and how they get their data.  
When I am in UI builder for Service Operation Workspace and do the following 

  1. Open UI builder
  2. select the Services Operation Workspace
  3. Select the Overview -> overview viewport -> Edit content
    StephenC_0-1728586239464.png

     

  4. I created a variant of the Service desk landing page overview SNC - Copy (to make it simple for now)
  5. Then I see the Donut Chart repeater 
  6. Then looked at the configure panel and it's showing @item.value.datasource

Where do I find the data source?

 

This is an OOB, not modified version of the page so it should be default.  
Could someone either direct me to some documentation on this that will help me locate the datasource or better yet, tell me were I can find it.  

Result of this is I want to remove the Incident SLA and make it filter from the Task table and show based on a filter.  We want to make this dynamic so other teams can use it without having a ton of page varients.

Thanks in advance

1 ACCEPTED SOLUTION

Kevin83
ServiceNow Employee
ServiceNow Employee

The repeater is repeating over a state variable called donutConfig, which is set in a script called UpdateDonutsConfig.

Screenshot 2024-10-10 at 3.26.23 PM.png


That script is referencing a script include called:

SowIncidentLandingPageUtils

You may want to access it via going to admin center and clicking Donut Configuration -> Configure:
Screenshot 2024-10-10 at 3.30.16 PM.png

That brings you here:
/sys_ux_client_script_include.do?sys_id=a1dcc9e7b77c3010e69dbc16de11a93b&sysparm_record_scope=49aff4bb733320103e366238edf6a70f&sysparm_nostack=true

and form there, there is another client script include:
/sys_ux_client_script_include.do?sys_id=4c36c1e3b77c3010e69dbc16de11a9a1&sysparm_view=
Here there data sources are defined.

I believe you can create your own version of the second script and reference it in the first script.



View solution in original post

1 REPLY 1

Kevin83
ServiceNow Employee
ServiceNow Employee

The repeater is repeating over a state variable called donutConfig, which is set in a script called UpdateDonutsConfig.

Screenshot 2024-10-10 at 3.26.23 PM.png


That script is referencing a script include called:

SowIncidentLandingPageUtils

You may want to access it via going to admin center and clicking Donut Configuration -> Configure:
Screenshot 2024-10-10 at 3.30.16 PM.png

That brings you here:
/sys_ux_client_script_include.do?sys_id=a1dcc9e7b77c3010e69dbc16de11a93b&sysparm_record_scope=49aff4bb733320103e366238edf6a70f&sysparm_nostack=true

and form there, there is another client script include:
/sys_ux_client_script_include.do?sys_id=4c36c1e3b77c3010e69dbc16de11a9a1&sysparm_view=
Here there data sources are defined.

I believe you can create your own version of the second script and reference it in the first script.