Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Dashboard Widgets not being captured properly in update set

nityabans27
Kilo Patron

Hi @everyone,

I created a pre-defined filter on a report source and attached it to an existing widget. However, when I capture the widget, the filter is not being captured with it. Only the original widget is captured, and the pre-defined filter is captured separately as a report source record.

Has anyone faced this issue before or knows how to ensure the filter is captured along with the widget?

2 REPLIES 2

prajaktajga
Tera Contributor

Hello @nityabans27 ,

 

1.Pre-defined filters on Report Sources do not get included when capturing a widget.
2.Manually add the filter to the same update set.

Ankith Sharma
Mega Guru

Hi @nityabans27 

Yes, I’ve seen this behaviour a couple of times while moving dashboards across instances.

The widget record itself doesn’t store the filter, ServiceNow keeps the pre-defined filter inside the Report Source, so the platform treats it as a separate configuration item. Because of that, the widget gets captured, but the filter doesn’t come along automatically.

What usually works for me is:

  • After creating or modifying the pre-defined filter, open the Report Source record and switch the update set there as well.

  • Save it once so the filter is captured properly.

  • Then go back to the widget and re-save the widget so the reference is fresh.

Once both records are in the same update set, the dashboard usually behaves correctly after migration.

If you found this useful, please mark it as Helpful and Accepted.

— Ankit