Employee Center - My Active items showing 0 task even though there are tasks

Max19
Tera Contributor

Hi all,

I am facing an issue in the My active items widget in employee center. The tasks is showing 0 but when i click into the task, there are multiple tasks pending. Below are some screenshots to illustrate:

find_real_file.png

- Figure 1: Showing 0 task under my active items

find_real_file.png

- Figure 2: But when user click on the tasks on the widget to get to my to-dos, it shows that there are tasks

find_real_file.png

- Figure 3: Activity configuration for Tasks

Appreciate some assistance or advice on how we have have the widget task count sync up with the to-dos

Many thanks in advance!!

 

1 ACCEPTED SOLUTION

Max - it's simple. Please create a new record in Activity Configurations. Please refer to below screenshot for configurations.

find_real_file.png 

Regards,
Muhammad

View solution in original post

10 REPLIES 10

Community Alums
Not applicable

Have you managed to get the solution for this? I am also experiencing the same problem. The task count is not showing the approval tasks for Requested Item or Requests , but when when the user navigates to My To do list it is showing all those approval requests.

Sharad S
Kilo Guru

Hi Max,

That count comes from primary activity.itemCount part of real only widget my-items. I would suggest checking widget instance options and you have correctly defined activity configuration. Still an issue then I  suggest logging HI ticket if your activty config is correct instead of clone/customising OOB widget. You dont have much controll apart from activity config, because of read only protection policy. 

Please mark as correct answer or helpful if the provided response resolves your query!

 

Susan Britt
Mega Sage
Mega Sage

The count being incorrect on "Requests" and/or not showing for other configured records is a known issue for the widget.  I believe this was supposed to be fixed with the August release of the Employee Center applications.  Validate that you have the latest versions installed.  

Rahul Kumar Sh1
Tera Contributor

Hi Guys, 

 

Here I got solution for this just I used one more function i oob script include, I got count correct on active item widgets here is script below which solve this problem above

use this script inside script include(' ActivityConfigurationUtil' ).

 

getMyIncidentsCount: function(){
var logUser = gs.getUserID();
var incCount = new GlideRecord("incident");
incCount.addQuery("caller_id",logUser);
incCount.query();
var countInc = incCount.getRowCount();
return countInc;
},

 

RahulKumarSh1_0-1683197459455.png

I have tested and it is working fine for me...........thank you😊

Rahul Kumar Sh1
Tera Contributor

Hi please check solution below working perfectly. let me know if you have doubt. do not forget to hit helpful

 

RahulKumarSh1_0-1683532287557.png