Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Time Cards not showing for Program Tasks in Time Sheet Portal(Time Card Portal) - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Time Cards not showing for Program Tasks in Time Sheet Portal(Time Card Portal)
KB0786083

Time Cards not showing for Program Tasks in Time Sheet Portal(Time Card Portal)


2256 Views Last updated : Feb 21, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

After adding Resource Plans to Program Tasks, user's will notice that they do not automatically generate in the Task Selector widget of the Time Card Portal. The only way to add Program Tasks to this selector is by selecting 'Generate time cards' or by adding via 'Add unassigned tasks to Time Sheet' action.

Release

London+

Cause

Out of box, pm_program and pm_program_task do not exist as defaultTables which are defined in the widget:  Time Card Portal - Task Selector. In order to have Time Cards display for these tasks automatically, users will need to modify the comma separated list defined in the variable: defaultTable.

Out of box, the defaultTable variable allows the following tables to be automatically be generated as Time cards is: var defaultTables = 'incident,problem,change_request,rm_story,rm_scrum_task,pm_project,pm_project_task,tm_test_plan,rm_defect,rm_enhancement';

Resolution

1. Navigate to the [sp_widget] table and search for the 'Time Card Portal - Task Selector' and open the record.
2. In the Server script field, locate line 38, which defines the Locate line 38 in the Server Script field (defaultTable var)
3. Using comma separation, add the pm_program_task (and any other necessary tables to the variable)
4. Save

5. With newer releases (San Diego, Utah, and Vancouver+), it will also be necessary to include these tables in the 'Time Card Portal Container' Widget Instance.
*To find this record, search for 'widget instances' in the filter navigator and open the record using the first column (or reference icon if there is one) instead of clicking "Time Card Portal Container' text in the 'widget' column as this will open the widget record instead of the widget instance.

6. In the Additional options, JSON format field, look for the 'task_selector_options' field. Within it, there is a tables field. The tables that were added in step #3 will also need to be included in this list.

 

Related Links

*To have this Widget replaced by future system upgrades...
1. Navigate to sys_update_xml.list (Customer Updates)
2. Find the update record (which will have updated by YOU and Target Name of 'Time Card Portal - Task Selector')
3. Add the 'Replace on upgrade' column
4. Check value to TRUE


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.