how can i show change details in approval request in esc portal

Ansuman
Tera Contributor

When I open my task under the todo page in the ESC portal the approval for change request is visible, but it has no necessary details to provide approval. 

Ansuman_0-1677559345702.png

So how should i achive this. Like in RITM approval task it have details like requested by, priority,description, etc.

9 REPLIES 9

kotharir
Tera Expert

Hi @Ansuman, you can configure the fields from "To-dos Configuration".

1. Search for "To-dos Configuration" under "Employee center" in left navigation

https://xxxxx.service-now.com/now/nav/ui/classic/params/target/sn_hr_sp_todos_config_list.do%3Fsyspa...

2. Open "Approval" record and go to "Detail Row" section

https://xxxxxx.service-now.com/sn_hr_sp_todos_config.do?sys_id=23fb71a8731023002ceb31d7caf6a7b6&sysp...

3. Add the required field and refresh the portal.

 

Please mark the answer correct if it works.

Alok Kumar2
Tera Expert

Hi Ansuman,

 

You need to check if this widget is a cloned one and you can make changes to it or not. By the looking at the image, it looks a cloned widget to me and you can edit this. I am not sure what level of customization has been done to this widget, but if you compare it with the OOB "Approval Record" widget, then the change you would have to make is below:

1. In the marked line from server script code, add the fields you want to display as a parameter.

AlokKumar2_1-1677562935126.png

2. In the HTML, add the fields in the exact same manner the fields are displayed. I have added short description, you need to add the other fields that you would add as per the 1st point.

AlokKumar2_2-1677563169433.png

 

Save the changes and refresh the page to see the results. I have added Short Description, and this is how it looks.

AlokKumar2_3-1677563342559.png

Note : This is a clone version of OOB Approval Record widget with no other customization.

 

 

Thanks,

Alok

 

 

@Alok Kumar2,

Thank you for the response but its for service portal 

With this process, I got the details in the SP portal, but I want it in the ESC employee service centre. Under the todo page, it comes as approval tasks; the widget used for that is Todo approval.

Can you help me edit that widget to get the details? 

Ansuman_0-1677564868951.png

This is the ESC portal with page todo, which im referring

Ansuman_1-1677565008525.png

 

See the url is for esc portal :- To-dos - Employee Center (service-now.com)

https://dev103051.service-now.com/esc?id=hrm_todos_page

 

 

Hi Ansuman,

 

For doing this on the ESC  portal, you need to modify the widget name - "To-dos task Line Item" , id - "hrm-todos-line-item". I have attached the widget's xml in this reply, you can import this xml in your personal developer instance and check. I have added Assigned to and Description to be displayed, you can add the other fields in the same way.

In the HTML, you need to add the below code:

AlokKumar2_0-1677651949341.png

In the server script add the below which is highlighted in yellow:

AlokKumar2_1-1677652064114.png

You can work on the UI to show as per your needs, using the above code it will like below:

AlokKumar2_2-1677652136074.png

 

 

kotharir
Tera Expert

Hi @Ansuman 

you can configure from "To-dos Configuration" module available under employee center.

  1. Search for "To-dos Configuration" under Employee center Application.
  2. Open “Approval” record and look for “Detail Row” section and add required fields.
  3. Refresh the portal and you should be able to see the fields.

 

https://xxxxx.service-now.com/sn_hr_sp_todos_config_list.do?sysparm_userpref_module=0d36298853052300...

 

https://xxxxx.service-now.com/sn_hr_sp_todos_config.do?sys_id=23fb71a8731023002ceb31d7caf6a7b6&syspa...

Please mark the answer correct if it helps.