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.

How to change the display order of the "My tasks" widget

Takumi Ando
Tera Contributor

I have a question about the "My tasks" widget on the "My Tasks" page (id=hrm_todos_page) in Employee Center.

In what order are the items displayed here?
Also, if I want them to be displayed in descending order of creation date, where can I change the setting?

TakumiAndo_0-1702257710397.png

 

12 REPLIES 12

Harish KM
Kilo Patron
Kilo Patron

Hi @Takumi Ando You have to take a look at Todos Filters widget. This widget uses a script include "TodosFilterUtilSNC" which calls "getFilters" function, you may check this.

I think default sort order is the due date. you can also check to-do configuration under Employee center how this script include is used

Regards
Harish

SLK Gupta
Tera Guru

Hi @Takumi Ando ,

if you want to display the tasks in descending order,

 

Navigate to Activity Configuration under Employee center

SLKGupta_0-1702262132228.png


Then select tasks record.

SLKGupta_0-1702262932429.png

 

It is in employee center scope so, change your scope accordingly @Takumi Ando .
After opening the record you can see the sort order.

SLKGupta_2-1702262229866.png


Ascending is selected by default, as you want it in descending, change it accordingly @Takumi Ando .

Save the record and verify it.

I hope my response helps you in solving your requirement, if it helps mark my answer as accepted solution/ helpfull answer @Takumi Ando .

Thanks & Regards,
S. Lakshmikanth Gupta.

 

Hi @SLK Gupta ,

Even if I set it to "Descending", the order of display does not change.

If "Sort by" is empty, which field is sorted by?

I added "sys_created_on" but still could not sort it properly, am I doing it wrong?

Hi @Takumi Ando ,

 

its not sort by field @Takumi Ando , it is sort order field which is on the right side @Takumi Ando .

SLKGupta_0-1702267689844.png

No Need to select anything in the sort by field.

I hope my response helps you in solving your query, if yes please mark it as accepted solution @Takumi Ando .

 

Thanks & Regards,

S. Lakshmikanth Gupta.