How do I add text to a Request Short description Field via Lists?

eddiemorales
Tera Contributor

We are trying to have the short description field populated in list details with the respective service catalog request so users can have more visibility.

Thanks!

7 REPLIES 7

amlanpal
Kilo Sage

Hi Eddie,



Please follow the below steps to configure so.



1. Please type sc_request.LIST in your navigation search, it will open list of Requests in a separate tab.


2. Right click on the header of any column and navigate to Configure-->List Layout as per below screenshot.


find_real_file.png


3. Bring the Short description from Available slush bucket to Selected slush bucket by selecting and clicking the Add button. Do save once you are done with adding in the Available slush bucket. Refer below screenshot.


find_real_file.png


4. If you are done with above 3 steps, you are able to see the Short Description in the default List layout in the Request form. If you want to configure the same for any other table, you may refer the steps mentioned above.



I hope this helps.Please mark correct/helpful based on impact


Hi Amlan,



Thank You for the directions. What I am needing to know is how do I populate the short desc with the actual service catalog item (ie "Conference Call" Request displays on short description "Conference Call")?



Thanks!


Eddie


Hi Eddie,



You can create a after insert business rule in request item table to update the short description of sc_request table, to be as same as that of the RITM catalog item.


Hi Eddie,



From your comment I assume that you want to replace the Short description field value of the Request form with one variable value. If I have understood correctly, then you have to write one before Insert Business rule in the Request table (sc_request) with the scrip given below.



(function executeRule(current, previous /*null when async*/) {



  var grRITM = new GlideRecord('sc_req_item');


  grRITM.addQuery('request', current.sys_id);


//If you want this functionality for single item, then pass the sys_id of the item instead of 'sys_id'. Or else you may remove the below line.


  grRITM.addQuery('cat_item', 'sys_id');


  grRITM.query();


  while (grRITM.next()) {


  //Check whether the variable Short description, let's suppose the variable name is short_desc, is not blank


  if (!JSUtil.nil(grRITM.variables.short_desc)) {


  //Put the variable value to the Request's Short description field


  current.short_description = grRITM.variables.short_description;


  }


  }



})(current, previous);



If your requirement is bit different than my understanding, please feel free to get back to me.



I hope this helps.Please mark correct/helpful based on impact