Create a Filter in My request Widget

anu57
Tera Contributor

My Request Widget gives  the list of all tasks Created by me. Like Incident , REQ and RITM.

I need to create another filter to add type of task. Filter options will be Show Incidents, Show REQ, Show RITM.

I have clonned the My request widget, How do I create a custom filter in the widget?

5 REPLIES 5

SatyakiBose
Mega Sage

Hello @anu57 

The widget that you are referring to cannot be customized.

You need to clone the widget and then customize it.

The widget can be found here - https://xxxxxx.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=8cc0df25875023000f220cf888cb0bb5

You need to customize the server script with the table and the query you want to run to render the records.

I have cloned the widget, how do I pass the query based on the input from the filter

Hello @anu57 

Please refer to lines 106-137 in the server script.

You can see how the query conditions are passed.

You can add your custom query conditions for the tables you want to show up.

Stefan Lowrie
ServiceNow Employee
ServiceNow Employee

Did you have any luck creating the filters you wanted?