My Active items widget - adding Change requests to Activity configurations and My Requests page

Michal Sadowski
Mega Sage

Hi EC superheroes,

 

I have a very reasonable requirement from my stakeholders to consolidate all important task types into My activities Items widget. One important task type that will require additional configuration is Change requests. The idea is to add Change requests to the widget as below using Activity configurations:

MichalSadowski_0-1674641010131.png

The expected behavior when users click this on homepage is to 1) take them to My requests page 2) that is filtered to active Change requests.

1) No problem with this part. This I achieved by configuring Activity configuration AND My request filter for Change requests

MichalSadowski_2-1674641247104.png

 

MichalSadowski_1-1674641209303.png

2) This is where the set-up fails. How do I make sure the activity configuration a) counts active change requests in My active items widget, b) when clicked, it takes the user to My Requests page filtered to active Change requests only?

 

Any help appreciated. My preference, if possible, is to stay with OOB My active items widget and OOB My Requests page and only add configuration settings.

 

 

1 ACCEPTED SOLUTION

Dan O Connor
ServiceNow Employee
ServiceNow Employee

@Michal Sadowski Not sure if you got this sorted, but figured it might be useful for anyone that drops by on the thread

 

Widget Count

The counts on the widget are controlled through a Script Include called ActivityConfigurationUtilSNC. This shouldn't ever have to be changed, as it's passing through what's setup in the Activity Configuration, which you've done 🙂 

Just to note, the count will only ever show up to '9+'. Anything less than 10 has a digit, anything 10 or more shows 9+.

 

The Activity Filter Configuration is where we control what ultimately is going to appear in the Count, as that is returning filtered records.

In your example above, your filter is going to return All Active Change Requests. So that is likely always going to be 9+. As the idea behind the widget is to show the user their work, it's generally a good idea to narrow this down to applicable stuff to the user.

So for example you might add into the filter there Change Requests assigned to the user, or Opened by the user.

 

Page direction

You can see in the Activity Configuration setup, there is a record to define what page the user will be directed to. This passes into the widget through that script mentioned above for when someone clicks on the count tile.  So in your example when someone clicks the Change part of the widget, it will open My Requests.

 

My Requests is not configured (to my knowledge) for Change, so there is two options here I see

 

a) You will need to edit and customize the My Requests widget to include Change Requests

b) You will need to create a new page for Change, that includes for example, a Simple List widget to return the records (worth remembering to just configure any list widget as you have as per your filters)

 

Personally I would probably suggest option b. In the event Change ever becomes baseline to the widget or the My Requests page, it would be just deactivating the Change page as opposed to having to reconfigure the My Requests page and widget again. 

 

 

View solution in original post

9 REPLIES 9

Navigate to Employee Center -> Activity Configuration.

 

This is the list of configured records for the widget. If you see one for annual goals just go in and make inactive. 

Anandini
Tera Expert

Hi @Michal Sadowski ,

 

Did this solution work successfully? I need guidance on changing the layout of my active items, as I have a requirement to modify it.

As far as I remember it did - yes.

AdolfMontaner
Tera Contributor

@Dan O Connor  As this is related to My active items widget (My Items), I just want to know how to configure the layout of the current version, on my end it looks like this. Can you confirm if this is the updated looks, so I can tell the design team that the one will not be feasible, as we are currently checking the OOTB widgets design for our solution.

AdolfMontaner_0-1750687196507.png

 

The look that we need is this one below.

 

AdolfMontaner_1-1750687288722.png

 

@AdolfMontaner Yeah we did a re-design on the Activity Item widget a number of releases ago. So the top image is the current design version. 

However you can still make it look similar to the old one by just adjusting container sizes and CSS of the instance of the widget (so your not customizing the widget) 

DanOConnor_0-1751903064829.png


I am not privy to the specific customer feedback we received to drive the change, but I just know from my own experience the original design was a bit cumbersome. The new design (for me anyway) is much better and fits nicer into single column layouts typically on the side.