Service portal widget to display requested items.

tabber66
Kilo Contributor

Want to change the My Requests widget to look at requested Item, as they have more information then the requests for the end users.

4 REPLIES 4

Alikutty A
Tera Sage

Hi Darren,



There is an OOB widget for Requested Items, Here is the URL (replace instance_name)



https://instance_name.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=624afdb3d7230200a9addd173e24...



You can use this one instead of the My Requests.



Thank You


Please Hit Like, Helpful or Correct depending on the impact of response


tabber66
Kilo Contributor

I added that widget and now get the following attached error. find_real_file.png


Hello Darren,



Just put theses values on the widget isntance in additional options, JSON format:



{


  "always_show": {


  "displayValue": false,


  "value": false


  },


  "image_field": {


  "value": null,


  "displayValue": ""


  },


  "secondary_fields": {


  "value": "number",


  "displayValue": "number"


  },


  "panel_body_height": {


  "value": null,


  "displayValue": ""


  },


  "rounded_images": {


  "displayValue": false,


  "value": false


  }


}


Sean3
Kilo Contributor

I was able to change this widget to do just that I had to edit the link it creates in the script section to this

 

record.url = {id: 'ticket', table: 'sc_req_item', sys_id: ritm.sys_id.getDisplayValue()};

 

This forms a link to requested item system id and instead of going to the request portal it goes to the ticket form portal.