The search bar on Time sheet portal is not showing all tickets from Task table,like PRJ, REQTASK,etc

AbdurRahmanSnow
Giga Guru

Good morning.
On the Time sheet portal, on the left hand-side search bar, everyone should be able to search and see everyone ticket's such as INC, PRJ, DMND, PRB, GRQ, REQTASK, etc. (all the task records), irrespective of the tickets that are only assigned to them or not, and then, add it to the time cards.

AbdurRahmanSnow_1-1742279596924.png

In the screenshot above, you can see, it is only showing limited number of task records. But if you want to add other task records to Time sheet, then we should we going to Time cards>All, and then click "New", and from there, under Task field, manually add the record, along with timings worked and submit, and then the ticket comes and gets comes and gets stored in Time sheet.

AbdurRahmanSnow_3-1742279859951.png

But we don't want to do like this. We directly want to search from the Time sheet search bar and directly add.

How can we do this?
We can do the changes in the code, under Service Portal configuration. (Screenshot below). Please help.

AbdurRahmanSnow_4-1742280116304.png

 

 


1 ACCEPTED SOLUTION

Hi @shamil-ibrahim 
I have worked on re-configuring the code and finally, the code worked. Screenshot is at the last. Now, the "Add unassigned tasks to Time Sheet" button search bar is working perfectly.
Thank you so much for the help.

The code is below:

{
 "tm_grid_options": {
 "displayValue": "Time card grid options",
 "value": {
   "pageSize": 20,
"restrictedStatesForDuplicateMerge" : ['approved', 'processed'],
 "header_fields": [{
  "name": "task.short_description",
  "width_in_percent": 16
  },
    {
                     "name": "project_time_category",
                     "width_in_percent": 20
    }
  ]
  }
 },
"task_selector_options": {
 "displayValue": "Time Sheet Portal Task Selector Options, set maxVisibleTask, maxVisibleGroupTasks to positive integer to limit task selector cards.",
 "value": {
  "tables": "rm_epic,sn_safe_epic,incident,problem,change_request,rm_story,rm_scrum_task,pm_project,pm_project_task,rm_defect,rm_enhancement,dmn_demand_task,sn_audit_task,sn_audit_engagement,sn_audit_advanced_milestone,sn_audit_advanced_engagement_project,sn_grc_issue",
  "maxVisibleTasks": -1,
  "maxVisibleGroupTasks": -1,
 "disableTaskSelectorSync": false,
 "showDuplicateCards": false
  }
}
}

AbdurRahmanSnow_0-1744220755532.png

 



View solution in original post

5 REPLIES 5

Hi @shamil-ibrahim 
I have worked on re-configuring the code and finally, the code worked. Screenshot is at the last. Now, the "Add unassigned tasks to Time Sheet" button search bar is working perfectly.
Thank you so much for the help.

The code is below:

{
 "tm_grid_options": {
 "displayValue": "Time card grid options",
 "value": {
   "pageSize": 20,
"restrictedStatesForDuplicateMerge" : ['approved', 'processed'],
 "header_fields": [{
  "name": "task.short_description",
  "width_in_percent": 16
  },
    {
                     "name": "project_time_category",
                     "width_in_percent": 20
    }
  ]
  }
 },
"task_selector_options": {
 "displayValue": "Time Sheet Portal Task Selector Options, set maxVisibleTask, maxVisibleGroupTasks to positive integer to limit task selector cards.",
 "value": {
  "tables": "rm_epic,sn_safe_epic,incident,problem,change_request,rm_story,rm_scrum_task,pm_project,pm_project_task,rm_defect,rm_enhancement,dmn_demand_task,sn_audit_task,sn_audit_engagement,sn_audit_advanced_milestone,sn_audit_advanced_engagement_project,sn_grc_issue",
  "maxVisibleTasks": -1,
  "maxVisibleGroupTasks": -1,
 "disableTaskSelectorSync": false,
 "showDuplicateCards": false
  }
}
}

AbdurRahmanSnow_0-1744220755532.png