The condition to count the number of Tasks in My active items widget

Daichi Ishikawa
Giga Sage

Hi, all! I'm studying Employee Center, and I want to know how I display the number of Tasks in My active items widget.
What are tables and conditions are related with the widget?


Does anyone have some answer to this question?

Any help would be greatly appreciated!!

6 REPLIES 6

mattystern
Kilo Sage

Hi Daichi,

 

If you are an admin in your instance, you can CTR+Right Click on a widget to open a configuration window:

mattystern_0-1675224029988.png

 

 I'm not an expert exactly at parsing this widget for useful information, but this may help on your journey!

-Matt

@mattystern 

Thanks for your quick reply!!

I checked the script and  found that c.primaryActivity.itemCount is related with the count.

I have to consider about that.

@mattystern 

Thank you for your quick reply!!

I checked scripts from [Widget in Editor] as you shared, and found that the count was related the value below.

c.primaryActivity.itemCount

 

I will think about that continuously.

Dan O Connor
ServiceNow Employee
ServiceNow Employee

Hey @Daichi Ishikawa 

Also if you weren't aware, this widget is generally controlled from it's own dedicated module in the platform.

Employee Center -> Activity Configuration

 

Here you can create records to tables with filters, to render submenus/items in the widget itself 🙂