We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to add Change Request Status on the My approvals information on Service Portal

Not applicable

Hi,

I wanted to add change request status also in the My Approvals information on service portal.

please guide me how we can add the Change Status information.

 

 

Regards

Tamil

1 ACCEPTED SOLUTION

Namrata Ghorpad
Mega Sage

Hello @Community Alums ,

There is one Widget "Approval Info" in that you need to update Server script.

Please check the below image.

Screenshot 2023-12-19 164619.png

In this script add your logic to show the state of change request and add in line number 34.

Write code like below.

var fields=$sp.getFields(gr, 'state,sys_created_on,nameof change request state field');

 

Please mark my answer as helpful and correct if it resolves your issue.

Regards,

Namrata

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron

Hi @Community Alums 

 

I assume you are looking for like this:

 

LearnNGrowAtul_0-1702979973373.png

 

 

For this , no special configuration is required. If a user has Approver role , then user can see the tab on portal. This is from My PDI and i did not no changes. 

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Not applicable

@Dr Atul G- LNG , Thanks for your reply.

 

Approval TAB visibility is ok.

Currently it will display the below information.

I wanted to add the 'status of the change ticket'  in the approval information.

TamilselvanPar_0-1702980740286.png

 

 

Hi @Community Alums 

 

The status is State here, and that is already there. In case you want to add any new attribute here, you need to modify the OOTB widget.

 

https://www.servicenow.com/community/itsm-articles/custom-widget-to-show-additional-change-request-d...

https://www.servicenow.com/community/now-platform-forum/customize-service-portal-approval-widget/m-p...

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/build/service-portal/concept/appro...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Namrata Ghorpad
Mega Sage

Hello @Community Alums ,

There is one Widget "Approval Info" in that you need to update Server script.

Please check the below image.

Screenshot 2023-12-19 164619.png

In this script add your logic to show the state of change request and add in line number 34.

Write code like below.

var fields=$sp.getFields(gr, 'state,sys_created_on,nameof change request state field');

 

Please mark my answer as helpful and correct if it resolves your issue.

Regards,

Namrata