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

Adrian Ubeda
Mega Sage
Mega Sage

Hi, 

From OOTB there's not possible, you need to customize the ticket conversation widget by cloning it, and then recover in server-side the data that you'll use in client-side and portal.

I recommend you not to add the members in the same space as the stage is; you can create by HTML a new div under the stage's one and place there all the members (data) that you want.

If it was helpful, give some positive feedback!

Thank you, 

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

i do not think we have to touch the ticket conversation widget,as it is no way related for our requirement.Please,correct me if i am wrong.

Regards

Nihanth Allada  

I did it using this widget ('I've checked it), i don't know is it was the best/simple way or not, but it works for sure. 🙂

 

Thank you!

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

Thanks for the confirmation,Can you please let me know what you did and where exactly the changes are made?.

 

Regards

Nihanth Allada 

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 ☆