How can I duplicate an Active Items widget for IT-specific use?

SwathiBanda
Tera Contributor

I want to duplicate my existing Active Items widget and create a version that is specific to IT.

The IT version should only show:

  • IT Surveys

  • IT Requests

  • IT Approvals

It should not appear on the main home page, but only on the IT page.

Would this be possible, and if so, what is the best way to configure it?

SwathiBanda_0-1757597924685.png

 

3 REPLIES 3

M Iftikhar
Kilo Sage

Hi @SwathiBanda,

 

Yes, this is possible. The approach would be:

  1. Duplicate the existing widget

    • Go to Service Portal > Widgets.

    • Open the Active Items widget and use Clone Widget (button at the form header) to create a copy (e.g. Active Items – IT).

  2. Adjust the data source / client controller

    • In your cloned widget, update the server script (or widget options) to only query:

      • IT Surveys

      • IT Requests

      • IT Approvals

    • You can filter by category, assignment group, or table depending on how your IT items are stored.

  3. Place the widget on the IT portal/page

    • Navigate to Service Portal > Pages.

    • Open your IT page and add the new Active Items – IT widget.

  4. Remove it from the main home page

    • Ensure the cloned widget is not placed on the default homepage.

    • Leave the original Active Items widget there for general users.

This way:

  • The generic homepage still shows the standard Active Items widget.

  • The IT page displays your IT-specific version with only surveys, requests, and approvals.

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks for the detailed info! Once I clone the widget, do I also need to adjust the activity configurations? Right now, whenever I add something there, it shows up in my main Active Items

SwathiBanda_0-1757609442037.png

 

RaghavSh
Kilo Patron

@SwathiBanda This will need all client/server and HTML scripting in widget.

 1st step would be to clone the OOB "Active item widget", then you need to add user criteria to widget which will control its visibility on basis of roles.

After that you need to adjust your HTML part to comment out the data you dont want to show.

 

You will have to then put the widget instance  on "IT page"

 

Refer : https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/servicenow_application_develop... 

 

https://www.servicenow.com/community/itsm-forum/how-to-add-widget-in-the-existing-page/m-p/485105 


Raghav
MVP 2023