Show Requested item stages Service portal

Brian Lancaster
Tera Sage

How Can I show the stages when users are looking at the requested item itself?   We are taking the user directly to the Requested Items as that is where they will see all communication between themselves and the tech.   But they still want them to be able to see if it is waiting for approval and who the approver is.

25 REPLIES 25

art_jones
Kilo Sage

Hi Brian;



There are several ways you could do this, but we chose to add a section to the ticket fields widget (we cloned the OOB version and modified it).   Basically in the server script, add a glide query to the approval table and find all approvals related to the requested item (we only show these approvals as opposed to any request approvals).   Then display the list in the widget for requested item only.



-Art


Would that not always show the approvers?   What about once it is approved does it then show the next stage such as Fulfillment.


Basically I want to be able to display this when as user is looking at the RITM.


find_real_file.png


The OOB Requested Items widget does something very similar to your image above, but in the context of the request.   The OOB Ticket Fields widget doesn't display approver names and approval states though, and it does display the current state of the item (as opposed to stage).   Our requirement was only for approvers/approval states so we didn't go much farther than that.   Sounds like you need a more graphical stage display and that's do-able, you just need to make sure its going to work the way you expect in all cases ... e.g. what would the stage display above look like on the page if there were multiple approvers?   SN definitely provides a good starting point with several of their OOB widgets.