approval person name on the portal

Nihanth Allada
Mega Guru

I am trying to add the person's name beside the waiting for approval on the service portal page like " Waiting for Approval: Nihanth Allada" I tried to do some enhancements on the Request Item Workflow Stages. But nothing seems to work out for me

1 ACCEPTED SOLUTION

Hi, 

First of all you should take the Id of the object that you want to refer, you can do it getting from URL for example. Then you can match that ID with the sysapproval_group.parent field in the approval table, after that you can create an array with all the approvers that you need in server side.
Pass that array to client side and create an HTML - <ul> element looping over the array.

Here's the post that I used to develop it : https://community.servicenow.com/community?id=community_question&sys_id=b9e843a1db5cdbc01dcaf3231f96...

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

View solution in original post

10 REPLIES 10

Ashley Snyder1
Giga Guru

To accomplish this you'd have to clone the OOTB widget and modify that, though I'm not sure how much effort would go into trying to show users next to stages. This may be easier to accomplished by cloning the ticket fields widget and getting the approval user from the associated approval. More information would be needed on where your approvals reside (i.e. requests/requested items).

I did have a few design questions:

1.Why are you wanting to show names next to the stages? 

2.What happens if that user is OOTO and has decided to use a delegate?

3.Will there be cases where users will start to reach out to that user specifically, and how will that user react to being IMed, emailed, etc. due to their specific name showing?

 

HI Ashely,

Thanks for your reply and please find the below for the answers to your questions 

I have cloned the OOTB widget and trying it the name of the widget is "Request Item Workflow Stages".Please, let me know if i am looking into the wrong one and also

 

1.Why are you wanting to show names next to the stages? 

To give the users the flexibility to track the  status of RITM's and from whom the approval is waiting to go to  the further steps.

2.What happens if that user is OOTO and has decided to use a delegate?

if it is delegated the approver name can be there beside the waiting for approval name.

3.Will there be cases where users will start to reach out to that user specifically, and how will that user react to being IMed, emailed, etc. due to their specific name showing?

We are fine with the users reaching out to the Approvers for the approval process,As per the company.

Regards

Nihanth Allada

In that case you would want to copy and modify the 'SC Order Status' widget in order to change how the 'stage' displays:

find_real_file.png

You might want to also copy and modify the ticket fields widget if you want to show more information on there if a user has made it into the ticket view:

find_real_file.png

If my response was helpful, please mark as Helpful and consider setting the reply as the Correct Answer if it best answered your question, thank you!

Hi Ashley,

I tried to do the above and seems it is not working for me,can you please provide some more information like where at what needs to be on the widget.

Regards

Nihanth Allada