The "Generate Time Cards" button doesn't work for the Team Space project task table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
The "Generate Time Cards" button on the Team Sheet Portal doesn't work for the Team Space project task table.
The button generates cards for the Project Task (pm_project) table, but not for the TeamSpace Project Task table.
Please advise on how to solve the issue with minimal customization.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi @Nadia7
As per KB : KB0786083 Time Cards not showing for Program Tasks in Time Sheet Portal(Time Card Portal)
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
Also refer: KB0961457 TeamSpace 1 is not allowing Project Tasks to be added on the Planning Console.
