Drilldown from dashboard reports opens a default view, I need to change it to a custom view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2025 04:27 AM
I have created a dashboard and few reports, these reports are score and bar type, when clicked it opens a list view of records, but this list view opens in a default view and not on a specific view which I have created and enfored with a view rule. Is there a way I can open the reports list view in a specific view? am i missing any configuration here? every one see that specific view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2025 08:48 AM
Hi @dineshchall,
You can set the drilldown view on the report configuration page under style tab
If my response helped, please mark it as the accepted solution so others can benefit as well.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2025 08:51 AM
Yes , but after creating report i want to add that report in to data visualization then dashboard ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2025 10:02 AM
ServiceNow – Opening Reports in a Specific List View
Issue:
When clicking on a report element (bar, score, pie segment, etc.), the resulting list view always opens in the default view instead of a custom view enforced by a View Rule.
Root Cause:
ServiceNow report drilldowns open lists via a URL like:
incident_list.do?sysparm_query=state=1
Because there is no “sysparm_view” parameter in the URL, the system defaults to either the user’s preferred view or the global “Default” view. View Rules are not enforced for report drilldowns.
---
✅ Solution Options
Option A: Add a View Parameter in the Report URL (Recommended)
1. Edit the report.
2. Scroll to the Drilldown section.
3. Change Drilldown Destination → “Detailed URL”.
4. Set the URL to include your desired view, for example:
incident_list.do?sysparm_query=active=true&sysparm_view=My_Custom_View
This ensures all users who click the report element will see the same custom view.
Example:
task_list.do?sysparm_query=assignment_group=Hardware&sysparm_view=Custom_View
---
Option B: Use a Client Script or UI Policy (Conditional Redirect)
If you can’t modify the report, create a list-level client script to redirect users to your desired view:
function onLoad() {
var currentView = g_list.getViewName();
if (currentView != 'my_custom_view') {
var url = new GlideURL(window.location.href);
url.addParam('sysparm_view', 'my_custom_view');
window.location.href = url.getURL();
}
}
Note: This approach is more complex and should be tested carefully.
---
Option C: Combine with View Rule
If you already have a View Rule in place, you can still add “sysparm_view” in the report’s drilldown URL to ensure the rule is applied consistently.
---
Option 😧 Modify Default View (System-Wide)
If your custom view should always be the default view for all users:
1. Navigate to System UI → Views.
2. Update the table’s “Default” view to your custom view.
Note: This change applies globally and affects all list views for that table.
---
⚠️ View Rule Limitations
- View Rules do not trigger when navigating from reports or dashboards.
- They only apply when opening a list or record directly.
- Adding sysparm_view explicitly in the URL ensures consistency.
---
Example Use Case
Dashboard with Score report for open incidents by priority:
Clicking on “High Priority” should open the list view “High_Priority_View.”
Drilldown URL:
incident_list.do?sysparm_query=priority=1^active=true&sysparm_view=High_Priority_View
---
✅ Summary of Methods
| Method | Works for Reports | Enforced for All | Notes |
|--------|-------------------|-----------------|-------|
| Add sysparm_view in Drilldown URL | ✅ Yes | ✅ Yes | Best & simplest |
| View Rule | ❌ No | ✅ Yes (for direct navigation only) | Not triggered by reports |
| Change Default View | ✅ Yes | ✅ Yes | Global impact |
| Client Script Redirect | ✅ Yes | ⚠️ Possible | Use only if report cannot be modified |
---
✅ Final Recommendation
Reports and dashboards always open the default list view unless explicitly overridden. To enforce a specific view for everyone:
**Add “&sysparm_view=YourViewName” to the report’s Drilldown URL.**
This is the cleanest, most maintainable way to control report drilldown views across all users.