In time sheet portal , Task tab only can see InProgress records

Anish9515
Tera Contributor

In time sheet portal , task tab i can see only in progress records 
This is OOB function , Please help me which widget can rework.

 

Anish9515_0-1735538320494.png

 

@Ankur Bawiskar

22 REPLIES 22

Ankur Bawiskar
Tera Patron
Tera Patron

@Anish9515 

Did you check by widget -> Time Card Portal Main Container

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Bhavya11
Kilo Patron

Hi @Anish9515 ,

 

Please cross verify Time Card Portal - Task Selector widget.

 

 

Thanks,

BK

Ravi Gaurav
Giga Sage
Giga Sage

Hi @Anish9515 

 

Please check  Time Card Portal - Task Selector widget.

 

Service Portal Widget  -> Time Card Portal - Task Selector

 

In server script,

2. Search for defaultTables -> it has all the table listed which shows in dropdown. if you want to only show project task then remove other table names and keep only 'pm_project_task'.

3. Search for function getRecords(table) ->

it has if (gr.instanceOf('pm_project') || gr.instanceOf('pm_project_task')) { block

in this if block you can see the encoded query formation for encodedQuery.

You can add 'state=2' to encodedQuery to show only WIP project tasks.

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

I have added encoded query , Still it doesn't work , Can you check on highlighted on below screenshots

Anish9515_0-1735547528153.png